Created
August 5, 2022 18:21
-
-
Save viezel/05b1298b3b2f616e6acb9789917404e5 to your computer and use it in GitHub Desktop.
Delete all resources in an AWS account
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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