SOA-C03

Introduction to AWS CloudFormation

Template anatomy, stack operations, change sets and drift detection, protecting resources, bootstrapping EC2, nested stacks and custom resources, and troubleshooting stack errors.

  • 5 lessons
  • Module quiz

AWS CloudFormation provisions AWS resources from templates, files that declare the resources and their settings. A deployed template is a stack, which CloudFormation creates, updates and deletes as a unit, rolling back automatically when an operation fails.

Most operational work happens after the first deployment: previewing changes with change sets, detecting manual changes with drift detection, protecting data with deletion policies, bootstrapping instances, extending templates with nested stacks, custom resources and hooks, and recovering stacks that are stuck in a failed state.

What the exam expects

Questions test template sections, change sets, drift detection, DeletionPolicy and UpdateReplacePolicy, CreationPolicy signals, IAM capabilities, and recovery from states such as ROLLBACK_COMPLETE and UPDATE_ROLLBACK_FAILED.

How this module is organised

Reading and Writing CloudFormation Templates explains template structure. Updating Stacks Safely and Detecting Drift explains safe changes. Protecting Resources and Bootstrapping Instances with CloudFormation explains data protection and instance configuration. Extending CloudFormation with Nested Stacks, Custom Resources and Hooks explains how templates are extended, and Troubleshooting CloudFormation Stack Failures explains how failures are resolved.

  1. Reading and Writing CloudFormation Templates Lesson 1
  2. Updating Stacks Safely and Detecting Drift Lesson 2
  3. Protecting Resources and Bootstrapping Instances with CloudFormation Lesson 3
  4. Extending CloudFormation with Nested Stacks, Custom Resources and Hooks Lesson 4
  5. Troubleshooting CloudFormation Stack Failures Lesson 5
  6. Practise and review
  7. Checkpoint Practice activities across the module
  8. Test your knowledge 6 questions