egoz
egoz

Reputation: 364

How to create an IAM policy for Cloudformation, which is based on a stack state?

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

Answers (1)

Slushysnowman
Slushysnowman

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

Related Questions