capabilities.work

Safe Stack Update

A 4-step recipe with AWS CloudFormation. We can help you get access.

Recipe · 4 steps

Safe Stack Update

with AWS CloudFormation · IT Infrastructure Management

Summarize, apply, and audit an in-place CloudFormation stack update.

  1. Get the template summary to surface required capabilities and declared parameters before applying the update.
  2. Apply the updated template to the stack. After this call returns the stack update has started and can be polled via DescribeStacks.
  3. Poll DescribeStacks until the update settles, then proceed to pull events whether the update succeeded or rolled back.
  4. Retrieve the recent stack events in reverse chronological order so the update can be audited resource by resource.
What you'll need to have ready
  • stackName: The name or unique ID of the stack to update.
  • templateBody: The updated CloudFormation template body to apply.
  • capability: An optional capability to acknowledge (e.g. CAPABILITY_IAM).
For your developer

Arazzo workflow cloudformation:safe-stack-update, 4 operations: getTemplateSummary → updateStack → describeStacks → describeStackEvents. Specs on APIs.io.