CloudFormation

Definition

AWS Infrastructure as Code service that lets you define your infrastructure using templates, simplifying deployment and management of resources.

Use Cases

Provider Equivalents

Frequently Asked Questions

What's the difference between CloudFormation and Terraform?
CloudFormation is AWS-native IaC: it’s tightly integrated with AWS services, uses AWS templates (YAML/JSON), and manages deployments as stacks. Terraform is a multi-cloud IaC tool from HashiCorp that uses HCL and can manage resources across many providers (AWS, Azure, GCP, etc.). Choose CloudFormation when you’re primarily on AWS and want native integration; choose Terraform when you need consistent tooling across multiple clouds or many non-AWS providers.
When should I use CloudFormation?
Use CloudFormation when you want repeatable, version-controlled AWS infrastructure (for example, identical dev/stage/prod environments), automated provisioning in CI/CD, and safer change management via change sets and stack rollback. It’s especially useful for standardizing account baselines (VPCs, IAM roles, logging) and for deploying application infrastructure consistently across regions or accounts.
How much does CloudFormation cost?
CloudFormation itself has no additional charge for creating and managing stacks. You pay for the AWS resources it creates (for example, EC2, RDS, load balancers, NAT gateways) and any related services you use (like S3 for templates, CloudWatch for logs/metrics). Costs depend on what the template provisions and how long those resources run.

Category: software

Difficulty: advanced

Related Terms

See Also