aws-cloudformation-templates
AWS CloudFormation Templates
Purpose
CloudFormation is AWS's native infrastructure-as-code service: it declares AWS resources in a YAML/JSON template, and AWS itself manages the create/ update/delete lifecycle as a stack, tracking resource state server-side (no separate state file to store or lock). That server-side state is also the main operational tradeoff versus a tool like Terraform — see infrastructure-as-code-terraform for the general "why IaC" case and Terraform's plan/state/module model. CloudFormation trades Terraform's multi-cloud portability and local plan files for deep native integration: no state backend to configure, native rollback on failed updates, IAM-scoped stack permissions, and StackSets for governed multi-account/multi-region rollout. Choose CloudFormation when the workload is AWS-only and you want AWS to own the state and rollback semantics; choose Terraform when you need multi-cloud consistency, a richer module ecosystem, or a plan file reviewable outside the AWS console/CLI.