Back to Lessons

AWS CloudFormation Infrastructure

April 5, 2026

Infrastructure as Code

Provision/update resources using declarative templates.

CloudFormation Components

Template Sections:
Parameters - User input
Resources - What to create
Outputs - Return values
Mappings/Conditions - Logic

Change Sets - Preview changes
StackSets - Multi-account/region
Drift Detection - Config changes

Formats:
JSON/YAML (YAML more readable)

Integration

  • CDK (higher-level constructs)
  • Service Catalog (approved templates)
  • Config compliance checking
  • Stack policies (protect resources)