capabilities.work

Review and Clean Up a Change Set

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

Recipe · 3 steps

Review and Clean Up a Change Set

Create a change set for review and clean it up when it is empty.

  1. Create a change set diffing the candidate template against the stack's current template.
  2. Poll DescribeChangeSet until it finishes computing. Branch to cleanup when it failed (typically because there were no changes), or end with the change set intact when real changes are present.
  3. Delete the empty or failed change set so it does not linger and risk being executed by mistake.
What you'll need to have ready
  • stackName: The name or unique ID of the existing stack to review changes for.
  • changeSetName: The name to assign to the change set.
  • templateBody: The candidate CloudFormation template body to diff against the stack.
  • capability: An optional capability to acknowledge (e.g. CAPABILITY_IAM).
For your developer

Arazzo workflow cloudformation:review-change-set, 3 operations: createChangeSet → describeChangeSet → deleteChangeSet. Specs on APIs.io.