Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] List (for later removal) unused SGs/AMIs/Volumes/Snapshots #142

Open
taraspos opened this issue Sep 5, 2017 · 3 comments
Open
Labels

Comments

@taraspos
Copy link
Contributor

taraspos commented Sep 5, 2017

Hey,
there are a bunch of different scripts for finding and cleaning up unused resources, it would be nice to integrate such functionality in awless to have it all in one place and easy to use.

AMIs and Snapshots cleaner example:
https://github.com/bonclay7/aws-amicleaner

Some rough SG list example:
https://gist.github.com/asinghal/f72afd1aebeba26789fd6ff3789cf4d4

@fxaguessy
Copy link
Contributor

Thanks for the suggestion, this is a good idea and is something we want to do.

A way to do it would be to add new inspectors. For example, as a proof of concept, you can try awless inspect -i port_scanner that display, in particular, the security groups that are not used by instances, nor network interfaces, nor loadbalancers.

We also could imagine an inspector that directly outputs an awless template to delete all unused securitygroups/images/volumes/snapshots.

@taraspos
Copy link
Contributor Author

taraspos commented Sep 5, 2017

@fxaguessy cool, I didn't know about awless inspect -i port_scanner.
Would be nice to add "rds/elasticache/lambdas/etc" to the applying on nothing check.

@fxaguessy fxaguessy changed the title [fature] List (for later removal) unused SGs/AMIs/Volumes/Snapshots [feature] List (for later removal) unused SGs/AMIs/Volumes/Snapshots Sep 5, 2017
@simcap
Copy link
Contributor

simcap commented Sep 5, 2017

Note - as @fxaguessy is saying - that the port scanner inspector is not production ready and was done quickly. Its output is not really usable and friendly.

We will do a proper one soon enough though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants