Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Requires capabilities : [CAPABILITY_IAM] #51
My set of commands was:
changed the title from
S3 Error Code: PermanentRedirect.
operation: Requires capabilities : [CAPABILITY_IAM]
Jan 2, 2017
This error is a security related message: it happens when you try to create a CloudFormation stack that includes the creation of IAM related resources. You have to explicitly tell CloudFormation that you are OK with that. To make it work, simply add the parameter --capabilities CAPABILITY_IAM to your deploy command. That should solve the problem. Cheers!…
On Mon, Jan 2, 2017, 2:30 PM Avi Zloof ***@***.***> wrote: Hi, I am trying to enable serverless deployment with pipline and cloudformation services but failing to do so due to the following error: My set of commands was: c:\StackData\lambda>aws cloudformation package --template-file samTemplate.yml --s3-bucket lambdabiot --output-template-file outputTemplate.yml Successfully packaged artifacts and wrote output template to file outputTemplate.yml. Execute the following command to deploy the packaged template aws cloudformation deploy --template-file c:\StackData\lambda\outputTemplate.yml --stack-name <YOUR STACK NAME> c:\StackData\lambda> c:\StackData\lambda>aws cloudformation deploy --template-file c:\StackData\lambda\outputTemplate.yml --stack-name ProdStack Waiting for changeset to be created.. An error occurred (InsufficientCapabilitiesException) when calling the ExecuteChangeSet operation: Requires capabilities : [CAPABILITY_IAM] — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#51>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAP995gSvsiOZf9B8l0yJ2wvP5_IVmiwks5rOPv1gaJpZM4LZAzq> .
I added the --capabilities CAPABILITY_IAM flag, but still get the the "Access denied" message in my console.
Here's the command I executed:
aws cloudformation deploy \ --template-file serverless-output.yaml \ --stack-name prod \ --capabilities CAPABILITY_IAM
anytihing else that could cause this? thx for your support!
I have the exact same issue when I run create-stack for a cloudformation template that contains IAM policies.
An error occurred (InsufficientCapabilitiesException) when calling the CreateStack operation: Requires capabilities : [CAPABILITY_NAMED_IAM]
I ended up with a command like: