aws-cloudformation
Provision infrastructure from declarative templates.
TLDR
Create a new stack from a template file
SYNOPSIS
aws cloudformation command [options]
DESCRIPTION
aws cloudformation is the AWS CLI interface for AWS CloudFormation, an infrastructure-as-code service that lets you model and provision AWS resources using templates. Templates define resources declaratively in YAML or JSON format, and CloudFormation handles provisioning and configuration.
CloudFormation manages resources as stacks, creating, updating, and deleting all resources together while automatically handling dependencies. Change sets allow previewing modifications before applying them.
COMMANDS
create-stack
Create a new stack from a templateupdate-stack
Update an existing stack with changesdelete-stack
Delete a stack and its resourcesdescribe-stacks
Get stack information, status, and outputsvalidate-template
Check template syntax and structurecreate-change-set
Create a preview of stack changesexecute-change-set
Apply a change set to the stackpackage
Upload local artifacts and rewrite template referencesdeploy
Deploy a template with automatic change set creationdetect-stack-drift
Check for configuration drift from template
CAVEATS
Stack deletions can fail if resources have deletion protection or dependencies outside CloudFormation. Rollback on failure is automatic but can leave stacks in UPDATEROLLBACKFAILED state requiring manual intervention. Large templates may hit API limits and require nested stacks.
HISTORY
AWS CloudFormation launched in February 2011 as one of the first infrastructure-as-code services. It introduced change sets in 2016 for safer updates, drift detection in 2018, and has continuously expanded resource type coverage. The service now supports over 700 AWS resource types.
