Check ID:
Provider: AWS
Service:
Severity: MEDIUM
Categories:
Resource type:
cloudformation_stacks_termination_protection_enabledProvider: AWS
Service:
cloudformationSeverity: MEDIUM
Categories:
resilienceResource type:
AwsCloudFormationStackWhat this check verifies
AWS CloudFormation root stacks are evaluated for termination protection. The detection identifies whethertermination protection is enabled to block stack deletions on non-nested stacks.
Risk
Without termination protection, human error or automation can delete entire stacks, causing immediate availability loss and potential data destruction of managed resources. Attackers with delete rights can more easily trigger outages and hinder recovery.Recommendation
Enable termination protection on root stacks for critical workloads. Enforce least privilege on who can alter this setting or delete stacks, require change review via change sets, and apply stack policies plusDeletionPolicy: Retain for data stores for defense in depth.
Remediation
- CLI
- Terraform
- Dashboard steps
aws cloudformation update-termination-protection —stack-name <STACK_NAME> —enable-termination-protection
References
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html
- https://www.trendmicro.com/trendaivisiononecloudriskmanagement/knowledge-base/aws/CloudFormation/stack-termination-protection.html
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = cloudformation_stacks_termination_protection_enabled. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to AWS checks