Aws Clean Tool

This tool cleans up AWS resources. It does aggresively confirms with "are you sure?" prompts before deleting each resource.

If you want want to bypass the all the prompts you can use the --sure flag. Be careful using the --sure flag!

This tool is useful to double check your work, it should not be relied on blindly to delete resources!

Usage

aws-clean keypair # cleans up unused keypairs. works well
aws-clean sg # cleans up unused security groups. Too simple to work well. Sometimes security groups reference security groups.

Install

Add to Gemfile:

gem "aws-clean"

And then run:

bundle

Or install it with the gem command:

gem install aws-clean

Development

To develop on the bleeding edge:

git clone https://github.com/tongueroo/aws-clean
git submodule init
git submodule update

This tool uses the aws-inventory which is vendorized under vendor/aws-inventory.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am "Add some feature")
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request