Netflix / SimianArmy

Tools for keeping your cloud operating in top form. Chaos Monkey is a resiliency tool that helps applications tolerate random instance failures.
Apache License 2.0
7.98k stars 1.14k forks source link

Add Cloud Formation Cleanup Support to Janitor #292

Open parasdsingh opened 7 years ago

parasdsingh commented 7 years ago

I wanted to use Janitor Monkey to cleanup Cloud Formation stacks (effectively, cleaning all associated resources within the stack). Basic requirement is for it to remove stacks that are missing tags or have been unused for X days.

I was unable to find any discussion on supporting this feature so have created a new issue. Are there any plans for supporting this in the near future?

gorzell commented 7 years ago

Out of curiosity, how would you go about determining if a stack is unused?

parasdsingh commented 7 years ago

I realize there's no sure-way of determining this but in my use-case there is always an EC2 instance which can be used to determine any last activity in the environment (effectively, the last access time for the stack).

Conditionally, we could link a resource from within the stack to be used for determining last-access of the stack. If no such resource is provided (with a valid last access attribute) the feature can be disabled