mlevit / aws-auto-cleanup

Programmatically delete AWS resources based on an allowlist and time to live (TTL) settings
MIT License
495 stars 54 forks source link

Question/Feature Request #43

Closed dfaulks-ops closed 4 years ago

dfaulks-ops commented 4 years ago

Just a quick question. I am looking into implementing this into my environment however I was wondering if there was a way to adapt this to utilizing tags instead of TTL?

The reason behind this is we often have ec2 instances brought up with either incorrect tags or in some cases large ec2 instances that have been forgotten. This is becoming quite costly. With the ability to use this cleanup method with tags I could eliminate this all together by having people stick with a standard or have their ec2 instance removed should they not follow it.

mlevit commented 4 years ago

Hey @dfaulks-ops apologies for the delayed response. You can actually achieve this using AWS Organisations. You can set up a tagging policy and if those tags aren't used, the EC2 instances can be shutdown. Have a look into that to see if it'll help.

dfaulks-ops commented 4 years ago

Thank you for your response. I will have a look into that now! Have a great day.

On Wed, May 20, 2020 at 8:44 PM Marat Levit notifications@github.com wrote:

Hey @dfaulks-ops https://github.com/dfaulks-ops apologies for the delayed response. You can actually achieve this using AWS Organisations. You can set up a tagging policy and if those tags aren't used, the EC2 instances can be shutdown. Have a look into that to see if it'll help.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/servian/aws-auto-cleanup/issues/43#issuecomment-631811911, or unsubscribe https://github.com/notifications/unsubscribe-auth/APGXYVXSYUZPWXSLFRNNL5LRSR2NLANCNFSM4MJXJVFQ .

-- Derrick Faulks System Administrator CoLinx, LLC. O 864.777.9025 M 803.569.0094