OpsWorks-aware Janitor monkey#185
Conversation
…he orphaned instance rule for termination
|
NetflixOSS » SimianArmy » SimianArmy-pull-requests #1 SUCCESS |
|
SimianArmy-pull-requests #173 SUCCESS |
|
Thanks for the PR. I was wondering if you would be willing to generalize it a little bit so that there isn't special case code. I was thinking you could have a property with a list of tags to check existence of. Or even more ambitious, tag/value pairs that you check. That way anyone could set tags for things they want janitor monkey to ignore and your OpsWorks case would also be solved. What do you think? |
|
I thought about making the ASG and OpsWorks checks work that way, but some comments in the InstanceCrawlerJanitor gave me pause. It doesn't just use the presence of the tag aws:autoscaling:groupName to determine if an instance has an ASG, it falls back to the "AutoScaling service" mapping of idToASGInstance (see InstanceJanitorCrawler.java): If this is an older concern and we can support everything by just tag checks, I'm game to refactor a bit. |
|
I like special casing OpsWorks because it is a special case 👍 |
OpsWorks-aware Janitor monkey
Optionally consider membership in an OpsWorks stack when evaluating the orphaned instance rule for termination. When this option is enabled, membership in an OpsWorks stack prevents deletion just like ASG membership.
ie. OpsWorks loves you, little instance, you're not an orphan.