You can prevent a stack from being accidentally deleted by enabling termination protection for your CloudFormation stack.

 If a user attempts to delete a stack with termination protection enabled on it, the deletion fails and the stack remains unchanged. Termination protection is disabled by default when you create a stack using CloudFormation. You can enable termination protection on a stack when you create it.

Comments