Revert stack imports into CloudFormation StackSets - AWS CloudFormation

Revert stack imports into CloudFormation StackSets

If you have unwanted changes in your stack instance, you can revert the stack instance import.

When you revert a stack instance import, CloudFormation deletes the stack instance from the stack set but retains the stack's resources.

To revert a stack import operation, complete the following procedure.

  1. Specify a DeletionPolicy attribute of Retain for each resource that you want to keep after the stack instance is deleted. For more information, see Reverting an import operation.

  2. Delete stack instances from your stack set. For more information, see Delete stack instances from CloudFormation StackSets .

  3. Delete your stack set. For more information, see Delete CloudFormation StackSets.