# Ensure termination protection is enabled for the cloud formation stacks

- Source: https://support.icompaas.com/support/solutions/articles/62000229559-ensure-termination-protection-is-enabled-for-the-cloud-formation-stacks
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [General](https://support.icompaas.com/support/solutions/62000037933) › [Policy Updates](https://support.icompaas.com/support/solutions/folders/62000168784)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

**Description:**  
Termination protection is a feature in AWS CloudFormation that prevents a stack from being deleted. This helps to protect your stack from being accidentally deleted or deleted by a malicious actor.

**Rationale:**  
Enabling termination protection is a best practice for security and infrastructure management. It helps to protect your stack from being accidentally deleted, which could result in the loss of data or other resources.

**Impact:**  
Enabling termination protection will prevent your stack from being deleted without your explicit permission. This will make it more difficult for someone to accidentally delete your stack or delete it for malicious purposes.

**Default Value:**  
By default, termination protection is disabled for CloudFormation stacks.

**Pre-requisites:**

-   You must have access to the AWS CloudFormation console.
-   You must know the name of the CloudFormation stack that you want to enable termination protection for.

  

**Remediation Steps:**

1.  Sign in to the AWS CloudFormation console.
2.  In the left navigation pane, click **Stacks**.
3.  Click the name of the CloudFormation stack that you want to enable termination protection for.
4.  In the **Overview** section, click **Edit Stack**.
5.  In the **Settings** section, select **Enable Termination Protection**.
6.  Click **Save**.

**Test Plan:**

1.  After you have enabled termination protection, you can verify that it is working by attempting to delete the stack.
2.  The delete operation should fail with an error message that indicates that termination protection is enabled.

**Implementation Plan:**

**AWS CLI:**

`aws cloudformation update-stack --stack-name my-stack --enable-termination-protection   `

  
**AWS GUI:**

1.  Sign in to the AWS CloudFormation console.
2.  In the left navigation pane, click **Stacks**.
3.  Click the name of the CloudFormation stack that you want to enable termination protection for.
4.  In the **Overview** section, click **Edit Stack**.
5.  In the **Settings** section, select **Enable Termination Protection**.
6.  Click **Save**.

**Backout Plan:**  
To back out of enabling termination protection, you can follow the same steps as the remediation steps, but deselect **Enable Termination Protection**.

**Note:**

-   You can enable termination protection for all of your CloudFormation stacks at once by using the AWS CLI or the AWS GUI.
-   You can also disable termination protection for a stack if you need to.

**Reference:**  
[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
