This utility tool will delete all resources from your AWS account. Whitelisted resources are saved. This tool is designed for resetting a non-critical AWS account such as a training or demo account.
- CloudFormation stacks
- EC2 key pairs
- EC2 AMI images
- EC2 security groups
- EC2 instances
- EBS snapshots
- CloudWatch alarms
- SNS topics
- S3 buckets
# Assertions must pass before any resources are deleted
assertions:
account_id: "012345678901"
account_alias: your-account-iam-alias
iam_username: your-iam-username
regions:
- us-east-1
- us-east-2
Create a config from the sample file and edit it:
cp config.sample.yml config.yml
Run cleaner:
./clean.py config.yml
This tool is provided as-is, use at your own risk!