Reverting a stack import operation - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.