With more people using our AWS account we're seeing resources being left-behind. Implement a way to cleanup old resources while allowing to specify what resources should be kept.
So far the idea was to delete everything older than 1 week unless:
- certain tag is set (for really long term things like vpcs)
- tag specifies until when we want to preserve this resource (so devels can say I'm going to need this VM for 3 weeks)
- CI label to dispose after 24h (or sooner?)
- if possible notify the creater via email in advance
Main sources of issues:
- developers
- prow - once we add https://issues.redhat.com/browse/KATA-4078
- upstream-ci - once Wainer finishes the functional CI pipeline
Some existing projects:
- https://github.com/jckuester/awsweeper
- https://github.com/RedHatQE/cloudwash - doesn't seem scalable enough, but we might improve it