AWS CloudFormation Command Line Operations: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
=Create a Stack= | =Create a Stack= | ||
aws cloudformation create-stack --stack-name ''stack-name'' --template-body file://.../''stack-template''.yml [--parameters | aws cloudformation create-stack --stack-name ''stack-name'' --template-body file://.../''stack-template''.yml [--parameters ParameterKey=Parm1,ParameterValue=test1 ParameterKey=Parm2,ParameterValue=test2] | ||
If the template is supposed to create IAM roles, the command line will fail with a message similar to "An error occurred (InsufficientCapabilitiesException) when calling the CreateStack operation: Requires capabilities : [CAPABILITY_NAMED_IAM]", unless the capability is explicitly provided on command line with: | If the template is supposed to create IAM roles, the command line will fail with a message similar to "An error occurred (InsufficientCapabilitiesException) when calling the CreateStack operation: Requires capabilities : [CAPABILITY_NAMED_IAM]", unless the capability is explicitly provided on command line with: | ||
aws cloudformation create-stack --capabilities CAPABILITY_NAMED_IAM ... | aws cloudformation create-stack --capabilities CAPABILITY_NAMED_IAM ... |
Revision as of 21:30, 18 March 2019
Internal
Create a Stack
aws cloudformation create-stack --stack-name stack-name --template-body file://.../stack-template.yml [--parameters ParameterKey=Parm1,ParameterValue=test1 ParameterKey=Parm2,ParameterValue=test2]
If the template is supposed to create IAM roles, the command line will fail with a message similar to "An error occurred (InsufficientCapabilitiesException) when calling the CreateStack operation: Requires capabilities : [CAPABILITY_NAMED_IAM]", unless the capability is explicitly provided on command line with:
aws cloudformation create-stack --capabilities CAPABILITY_NAMED_IAM ...