Skip to content

Commit

Permalink
Feat update aws nuke script (#193)
Browse files Browse the repository at this point in the history
* feat: update aws nuke script

* feat: update aws-nuke.yaml to work with new version of aws nuke

* Rename aws-nuke.yaml to nuke.yaml
  • Loading branch information
venkatamutyala authored Dec 3, 2024
1 parent 789b0f2 commit 02f56e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/destroy-aws.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

AWS_NUKE_VERSION=v3.29.5
# reference: https://github.com/GlueOps/scripts-teardown-aws-amazon-web-services
echo "Preform an AWS Cleanup with AWS Nuke"
wget https://github.com/rebuy-de/aws-nuke/releases/download/v2.25.0/aws-nuke-v2.25.0-linux-amd64.tar.gz && tar -xvf aws-nuke-v2.25.0-linux-amd64.tar.gz && rm aws-nuke-v2.25.0-linux-amd64.tar.gz && mv aws-nuke-v2.25.0-linux-amd64 aws-nuke
./aws-nuke -c aws-nuke.yaml --no-dry-run --force
wget https://github.com/ekristen/aws-nuke/releases/download/$AWS_NUKE_VERSION/aws-nuke-$AWS_NUKE_VERSION-linux-amd64.tar.gz && tar -xvf aws-nuke-$AWS_NUKE_VERSION-linux-amd64.tar.gz && rm aws-nuke-$AWS_NUKE_VERSION-linux-amd64.tar.gz
./aws-nuke nuke -c nuke.yaml --max-wait-retries 200 --no-dry-run --force --log-full-timestamp true
2 changes: 1 addition & 1 deletion tests/aws-nuke.yaml → tests/nuke.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
account-blocklist:
blocklist:
- "0123456789" # Keep listing any accounts you want to ensure do NOT get touched. If you did this properly and are using IAM credentials that only have access to your sub account then this is less important and could be left with this default/invalid value

accounts:
Expand Down

0 comments on commit 02f56e0

Please sign in to comment.