When creating a stack with CloudFormation, I get this error:
Stack update error: Requires capabilities : [CAPABILITY_IAM]
I can't find a template for adding CAPABILITIES_IAM
to the CloudFormation configuration.
What are the options for resolving CAPABILITIES_IAM
errors?
Turns out you need to check a box on the last screen of the stack creation. If you are using the console, just above the 'create stack' button there's a box asking you to acknowledge that you want to allow Cloudformation to modify IAM stuff. You can, of course, create the stack without the acknowledgement, which will cause the stack to fail with the
CAPABILITY_IAM
error (or another error, if a different capability is required).In CodePipeline CloudFormation you can add it like this to allow execution of the created change_set in the deploy action:
In the aws cli append
or
To your command like this:
This does not apply to cloudformation --validate-template as it is not actually creating the resources.