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

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:


Posted

in

, , ,

by

Tags:

Comments

One response to “FAILED. Reason: Requires capabilities : [CAPABILITY_IAM] – AWS SAM”

  1. RajeshM Avatar
    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

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com

%d bloggers like this: