All checks
Medium CloudFormation · regional

CloudFormation stacks should have termination protection enabled

Checks that a CloudFormation stack has termination protection enabled, so a request to delete it fails and the stack and every resource it manages stay as they are. It guards against deleting the stack, not against an update that removes resources. A nested stack takes the setting from its root stack and is judged there.

service
CloudFormation
severity
Medium
scope
evaluated in every region

How to fix it

  • Can break clients: Pipelines or scripts that delete this stack, such as the teardown of a short-lived environment, fail until they turn termination protection off first.

In the console

CloudFormation → Stacks → the stack → Stack actions → Edit termination protection

Termination protection
Enable

With the AWS CLI

aws cloudformation update-termination-protection --enable-termination-protection --stack-name <stack-name> --region <region>

See which of your accounts this check is failing on.

Book a live scan