deleterious
Helps you clean up AWS resources. This is handy when
retention policies on CloudFormation stacks leave lots
of orphaned AWS resources around costing money.
installation for homebrew
brew tap kindlyops/tap && brew install kindlyops/tap/deleterious
installation from source
go get github.com/kindlyops/deleterious
deleterious help
Example of deleting DynamoDB tables
Once deleterious gives you a list of things to delete, and
you have manually confirmed they are ok to delete, you
can make a little loop to delete the objects. Here is an example with dynamoDB tables
#!/bin/bash
# tables that need to be deleted
declare -a tables=("foo-MonkeyTable-1FDTVGZJOT25Y"
"foo-BananaTable-1HFLQZL7CVQ7L"
)
for i in "${tables[@]}"; do
echo "deleting table: $i"
aws dynamodb delete-table --table-name "$i"
done