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 wellaws-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:
bundleOr install it with the gem command:
gem install aws-cleanDevelopment
To develop on the bleeding edge:
git clone https://github.com/tongueroo/aws-clean
git submodule init
git submodule updateThis tool uses the aws-inventory which is vendorized under vendor/aws-inventory.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am "Add some feature") - Push to the branch (
git push origin my-new-feature) - Create new Pull Request