AWS CLI CloudFormation Cheat Sheet/Deploy a stack with package-style semantics

Create or update a stack using `deploy`.

Section: Stacks

Deploy a stack with package-style semantics

bash
bash
aws cloudformation deploy --stack-name app-prod --template-file template.yaml --capabilities CAPABILITY_NAMED_IAM
Explanation

A very convenient wrapper for common stack deployment workflows.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Stacks
Validate a template
Check a template for basic syntax and structural validity.
OpenIn sheetbashsame section
Create a stack
Create a CloudFormation stack from a local template.
OpenIn sheetbashsame section
Update a stack
Update an existing stack with a new template or parameters.
OpenIn sheetbashsame section
Describe stacks
Inspect stack status and outputs.
OpenIn sheetbashsame section
Delete a stack
Remove a CloudFormation stack.
OpenIn sheetbashsame section
Wait for stack create complete
Block until a stack finishes creating.
OpenIn sheetbashsame section