Friday, July 29, 2022
HomeCyber SecurityAn error occurred (InsufficientCapabilitiesException) when calling the CreateChangeSet operation: Requires capabilities :...

An error occurred (InsufficientCapabilitiesException) when calling the CreateChangeSet operation: Requires capabilities : [CAPABILITY_NAMED_IAM] | by Teri Radichel | Bugs That Chew | Jul, 2022


Add a flag to CloudFormation for IAM operations

This error signifies that a CloudFormation template you’re working has IAM sources in it. AWS lets and makes you acknowledge that by including a particular flag while you’re working an AWS CLI cloudformation deploy, create, or replace command.

In my case this:

aws cloudformation deploy 
--profile $profile
--stack-name $groupname
--template-file cfn/group_batch_job_admins.yaml
--parameter-overrides
groupnameparam=$groupname

Wanted to change into this:

aws cloudformation deploy 
--profile $profile
--capabilities CAPABILITY_NAMED_IAM
--stack-name $groupname
--template-file cfn/group_batch_job_admins.yaml
--parameter-overrides
groupnameparam=$groupname

You could find this flag within the documentation right here:

Wait. How come AWS can use underscores in variable names and we will’t?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments