Let’s Get Certified
Module 08 / 14 · Deployment and automation

Roll out repeatable infrastructure

Choose a deployment artifact, preview the change and diagnose a failed rollout across accounts.

Roll out repeatable infrastructure

A reusable template should name its inputs and pin the artifact that will run. Record the AMI ID for each Region or the image digest for a container. A mutable tag can resolve to different content between test and production. CDK synthesizes a CloudFormation template. Inspect its proposed resource changes before execution, especially replacements that affect persistent data.

For one failed rollout, read stack events in time order and identify the first resource that failed. A long rollback can leave many cancellation messages after the original error. Check the execution role, service quota and available subnet addresses against the reported reason. For many accounts, use StackSets with explicit targets, concurrency and failure tolerance. AWS RAM shares supported resources with other accounts under controlled access.

For a rolling release, replace a limited batch and watch its health before continuing. For blue/green, prepare the replacement environment separately, validate it and switch traffic with a tested return path. EC2 Image Builder can produce approved AMIs from a tested recipe. When the deployment is owned by Terraform, review the Git revision and saved plan for the target environment. Let one tool own each resource to avoid competing updates.

Worked case 1

A release changed an instance property. The change set predicts replacement of a stateful instance. What needs review before execution?

Check your reasoning

Find the data volume and its retention or snapshot settings. Establish whether the replacement can use the retained data, schedule disruption and verify recovery first.

Worked case 2

A template succeeds in one Region and fails at launch in another. The stack events name an invalid image ID. Where should the operator look?

Check your reasoning

Check the configured AMI in that Region. Verify the image is available and launchable there and update the Region mapping before retrying.

Preview stack updates with change sets · Official SOA-C03 objectives for this domain

Related lesson in Terraform Associate (004). Read the plan and promote the reviewed change.

Practice with the recording

A console edit fixes a production incident. What happens when the same stack is updated next week?

Check your reasoning

Run drift detection for supported resources and compare the actual change with the template. Decide whether to retain or revert the fix in version control. Review the change set for replacements before executing it.

sthithapragna · SOA-C03 full course · 4:48:41

Practice the individual exam skills
  • 3.1.1–3.1.3 Track a base image or container digest into an IaC deployment. Synthesize the CDK stack, review the change and follow the first failed event. Compare capacity, available subnet addresses and the execution role before retrying.
  • 3.1.4–3.1.6 Use a StackSet for repeated regional stacks and Resource Access Manager when accounts need access to one shared resource. Version the infrastructure definition in Git, review the Terraform plan or CloudFormation change set, and rehearse a rolling or blue/green update.
Knowledge check

Roll out repeatable infrastructure quiz

Answer 3 questions. Check each answer for an explanation.