Rollback Provisioned Infra with the CloudFormation Rollback Step

Updated 2 weeks ago by Michael Cretzman

Currently, this feature is behind the feature flag CLOUDFORMATION_NG. Contact Harness Support to enable the feature.

This topic describes how to use the CloudFormation Rollback Stack step to rollback to the last stack that was successfully provisioned by the CloudFormation Create Stack step.

Before You Begin

Limitations

  • You can only roll back to stacks provisioned by Harness.

Step 1: Add the CloudFormation Rollback Stack

In the Rollback section of your Deploy stage, click Add Step, and then select the CloudFormation Rollback Stack step.

When rollback happens, Harness runs the last successfully provisioned version of the stack.

Open CloudFormation Rollback Stack.

Enter a name and timeout for the step.

In Provisioner Identifier, enter the same Provisioner Identifier you used in the Create Stack step.

Harness determines what to rollback using a combination of Provisioner Identifier + Harness account id + Harness org id + Harness project id.

If you've made these settings expressions, Harness uses the values it obtains at runtime when it evaluates the expression.


Please Provide Feedback