Reputation: 364
I'm trying to create an IAM policy to allow deletion of Cloudformation stacks that are in ROLLBACK_COMPLETE
state ?
Is there any way to achieve a such filter ?
Upvotes: 2
Views: 66
Reputation: 498
Unfortunately, as far as I can see, it's not possible. I don't see a way to apply a condition to only allow deletion based on stack state.
Documentation on Condition Keys for AWS CloudFormation: Actions, Resources, and Condition Keys for AWS CloudFormation
Maybe there's another way to do what you're trying to achieve?
Upvotes: 2