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

  1. Open the AWS CloudFormation console.
  2. Choose Create Stack.
  3. Choose a template, and then choose Next.
  4. Complete the steps on the Specify Details page, and then choose Next.
  5. On the Options page, choose Advanced.
  6. For Rollback on failure, choose No.
  7. Choose Next.
  8. Review your stack settings, and then choose Create.

Disable rollback on failure in the redesigned AWS CloudFormation console

  1. Open the AWS CloudFormation console.
  2. On the CloudFormation drop-down menu, choose New Console.
  3. Choose Create stack.
  4. Choose a template, and then choose Next.
  5. Complete the steps on the Specify stack details page, and then choose Next.
  6. On the Configure stack options page, in the Advanced options section, choose Stack creation options.
  7. For Rollback on failure, choose Disabled.
  8. Choose Next.
  9. Review your stack settings, and then choose Create stack.

Did this article help you?

Anything we could improve?


Need more help?