Skip to content

Instantly share code, notes, and snippets.

@viezel
Created August 5, 2022 18:21
Show Gist options
  • Save viezel/05b1298b3b2f616e6acb9789917404e5 to your computer and use it in GitHub Desktop.
Save viezel/05b1298b3b2f616e6acb9789917404e5 to your computer and use it in GitHub Desktop.
Delete all resources in an AWS account
regions:
- eu-west-1
- global
account-blocklist:
- 1234567890
accounts:
"888222333444": {} # your account id
# optional: restrict nuking to these resources only
resource-types:
targets:
- ELBv2
- ELBv2TargetGroup
- ECSTaskDefinition
- ECSCluster
- ECSService
- ECRRepository
- S3Bucket
- S3MultipartUpload
docker run \
--rm -it \
-a stdin -a stdout \
-v /Users/madsmoller/aws-nuke/config/nuke-config.yml:/home/aws-nuke/config.yml \
-v /Users/madsmoller/.aws:/home/aws-nuke/.aws \
quay.io/rebuy/aws-nuke:latest \
--no-dry-run \
--config /home/aws-nuke/config.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment