DOP-C02

Introduction to AWS CloudFormation

Infrastructure as code with CloudFormation: templates and intrinsic functions, safe updates with change sets and policies, drift, nested stacks, modules, macros and hooks, helper scripts, custom resources and StackSets.

  • 5 lessons
  • Module quiz

AWS CloudFormation provisions AWS resources from templates that describe the desired infrastructure. A template deployed as a stack creates its resources in the right order, updates them when the template changes and rolls back when an operation fails, so infrastructure becomes versioned, reviewable and repeatable.

Where this module fits

CloudFormation is the foundation of infrastructure as code on AWS: AWS SAM and the AWS CDK generate CloudFormation templates, Service Catalog products and Control Tower customisations are built from them, and many pipeline deployments use CloudFormation actions. The exam tests safe updates, drift, template composition, custom resources and helper scripts, and StackSets for deployments across accounts and Regions.

How this module is organised

Understanding Templates and Stacks in CloudFormation explains template sections, intrinsic functions and stack operations. Updating Stacks Safely and Managing Drift covers change sets, stack policies, deletion policies and drift detection. Composing Templates with Nested Stacks, Exports, Modules, Macros and Hooks explains reuse and governance. Bootstrapping Instances and Extending CloudFormation with Custom Resources covers helper scripts and custom logic. Deploying Across Accounts and Regions with CloudFormation StackSets explains multi-account deployment.

  1. Understanding Templates and Stacks in CloudFormation Lesson 1
  2. Updating Stacks Safely and Managing Drift Lesson 2
  3. Composing Templates with Nested Stacks, Exports, Modules, Macros and Hooks Lesson 3
  4. Bootstrapping Instances and Extending CloudFormation with Custom Resources Lesson 4
  5. Deploying Across Accounts and Regions with CloudFormation StackSets Lesson 5
  6. Practise and review
  7. Checkpoint Practice activities across the module
  8. Test your knowledge 6 questions