Tear Down a Stack
A 3-step recipe with AWS CloudFormation. We can help you get access.
Recipe · 3 steps
Tear Down a Stack
with AWS CloudFormation · IT Infrastructure Management
Disable termination protection and delete a stack to completion.
- Disable termination protection so the subsequent DeleteStack call is not rejected.
- Issue the stack deletion. After this call returns the stack deletion has started and can be polled via DescribeStacks.
- Poll DescribeStacks until the stack is gone. End on DELETE_COMPLETE or branch to a failure end on DELETE_FAILED.
What you'll need to have ready
- stackName: The name or unique ID of the stack to delete.
For your developer
Arazzo workflow cloudformation:teardown-stack, 3 operations: updateTerminationProtection → deleteStack → describeStacks. Specs on APIs.io.