FAILED. Reason: Requires capabilities : [CAPABILITY_IAM] - AWS SAM

AWSErrorsSAMWeb Development

Hi everyone,

I ran into an error today while trying to deploy using AWS SAM:

aws cloudformation deploy –template-file C:Usersxxxserverless-output.yaml –stack-name events-app

Failed to create the changeset: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state Status: FAILED. Reason: Requires capabilities : [CAPABILITY_IAM]

The solution is pretty straightforward. You need to explicitly add –capabilities CAPABILITY_IAM to you command:

1 comment

Comments from the original blog are preserved here. New comments are closed.

  1. RajeshM

    In the template.yaml, for the function mention Role field with its ARN as value
    I make sure, always I aim FunctionName, Description and Role, otherwise you have to give capabilities with CAPABILITY_IAM which creates unnecessary resources internally