LaunchConfigurationCleaner
You can remove many LaunchConfigurations (AWS autoscaling setting) easier.
Installation
Add this line to your application's Gemfile:
gem 'launch_configuration_cleaner'
And then execute:
$ bundle
Or install it yourself as:
$ gem install launch_configuration_cleaner
Set these enviroment variable
export AWS_ACCESS_KEY_ID=your-access-key-id
export AWS_SECRET_ACCESS_KEY=your-secret-access-key
export AWS_REGION=your-region
Usage
- Execute
clean_lc
in your terminal.
$ clean_lc
- Then, this app shows your LaunchConfigurations.
[
YourLaunchConfiguration1,
YourLaunchConfiguration2,
YourLaunchConfiguration3,
YourLaunchConfiguration4,
YourLaunchConfiguration5,
]
- Enter "y", if you want to remove a LaunchConfiguration
Do you want to delete YourLaunchConfiguration1? (y/n)
- After judging each configurations, you need to enter a final answer.
These launch configurations will be deleted.
[
YourLaunchConfiguration1,
YourLaunchConfiguration3,
YourLaunchConfiguration5,
]
Are you sure? (yes or no)
If you enter "yes", LaunchConfigurations will be deleted.
Contributing
- Fork it ( https://github.com/[my-github-username]/launch_configuration_cleaner/fork )
- 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 a new Pull Request