How do I prevent my AWS CloudFormation stack from rolling back on failure?
Last updated: 2019-04-19
My AWS CloudFormation stack rolls back on failure, and then I get the following error: "Wait Condition Didn't Receive the Required Number of Signals from an Amazon EC2 Instance." How can I resolve this error and prevent my stack from rolling back on failure?
Resolution
Important: You can't disable rollback on failure for an existing stack. You can disable rollback on failure only when you create a new stack.
Disable rollback on failure in the default AWS CloudFormation console
- Open the AWS CloudFormation console.
- Choose Create Stack.
- Choose a template, and then choose Next.
- Complete the steps on the Specify Details page, and then choose Next.
- On the Options page, choose Advanced.
- For Rollback on failure, choose No.
- Choose Next.
- Review your stack settings, and then choose Create.
Disable rollback on failure in the redesigned AWS CloudFormation console
- Open the AWS CloudFormation console.
- On the CloudFormation drop-down menu, choose New Console.
- Choose Create stack.
- Choose a template, and then choose Next.
- Complete the steps on the Specify stack details page, and then choose Next.
- On the Configure stack options page, in the Advanced options section, choose Stack creation options.
- For Rollback on failure, choose Disabled.
- Choose Next.
- Review your stack settings, and then choose Create stack.
Did this article help you?
Anything we could improve?
Need more help?