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.
-
Specify a
DeletionPolicy
attribute ofRetain
for each resource that you want to keep after the stack instance is deleted. For more information, see Reverting an import operation. -
Delete stack instances from your stack set. For more information, see Delete stack instances from CloudFormation StackSets .
-
Delete your stack set. For more information, see Delete CloudFormation StackSets.