On a Mac you can run aws-nuke
using the following steps:
- Open a terminal (
Command
+ Space
and write terminal)
- Grab the latest version of the
aws-nuke
. Currently the latest version is 2.17.0
but obviously this will change in the future. In order to download aws-nuke
, we can run the following command:
wget https://github.com/rebuy-de/aws-nuke/releases/download/v2.17.0/aws-nuke-v2.17.0-darwin-arm64.tar.gz
wget https://github.com/rebuy-de/aws-nuke/releases/download/v2.17.0/aws-nuke-v2.17.0-darwin-amd64.tar.gz
- Extract the package using the following command (note: use
amd64
instead of arm64
if you are on an intel Mac):
tar -xvf aws-nuke-v2.17.0-darwin-arm64.tar.gz
- Create a
config.yml
file with the following content and place it nearby the extracted executable:
regions:
- global
account-blocklist:
- "999999999999" # leave it as it is, since the current version wont work if you don't provide a blocklist
accounts:
"000000000000": {} # fill in your own AWS account number
- Run the following command:
./aws-nuke-v2.17.0-darwin-arm64 -c config.yml
This should list the resources which might be deleted. If you are ok with the list, append --no-dry-run
to the previous command.