What is CloudFormation?
An AWS service that provisions and manages cloud resources using declarative JSON or YAML templates.
CloudFormation templates define AWS resources (EC2, RDS, S3, Lambda, VPC, etc.) and their configurations. A template creates a "stack" — a collection of resources managed as a single unit. Changes to templates trigger stack updates with dependency-aware ordering.
Features include change sets (preview changes), rollback on failure, drift detection, nested stacks, and cross-stack references. CloudFormation is AWS-specific; Terraform provides similar functionality across multiple cloud providers.