AWS Stack update error: Requires capabilities : [CAPABILITY_IAM]

后端 未结 2 1194
北海茫月
北海茫月 2021-02-02 06:03

When creating a stack with CloudFormation, I get this error:

Stack update error: Requires capabilities : [CAPABILITY_IAM]

I can\'t find a templ

2条回答
  •  野性不改
    2021-02-02 06:18

    If you are using the AWS CLI, you can add an extra parameter to the aws cloudformation create-stack command that explicitly states you want these capabilities provided.

    (this is the CLI equivalent of ticking the checkbox in the other answer here).

    The parameter is --capabilities CAPABILITY_IAM, so your command would look like:

    aws cloudformation create-stack --stack-name $STACK_NAME --capabilities CAPABILITY_IAM

    Hope that helps

提交回复
热议问题