简体   繁体   中英

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 ?

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM