Reverting a stack import operation - AWS CloudFormation

Reverting a stack import operation

To revert a stack import operation, complete the following tasks:

  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 your stack set.

  3. Delete your stack set. For more information, see Delete a stack set.

Results: The revert operation has deleted the stack instance and retained the stack's resources.