🛡️ AWS RDS Instance Deletion Protection is not enabled🟢
- Contextual name: 🛡️ Instance Deletion Protection is not enabled🟢
- ID:
/ce/ca/aws/rds/instance-deletion-protection - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logic
Similar Policies
- AWS Security Hub: [RDS.8] RDS DB instances should have deletion protection enabled
- Cloud Conformity: Instance Deletion Protection
Description
Description
This policy identifies AWS RDS Instances that do not have deletion protection enabled. Deletion protection helps safeguard database instances from accidental or unintended deletion.
Rationale
Accidental deletion of a database instance can result in permanent data loss and prolonged service downtime. Although Amazon RDS supports automated backups and snapshots, restoring a database from backups can be time-consuming and may negatively impact recovery time objectives (RTO).
Enabling deletion protection adds an additional layer of operational safety. When deletion protection is enabled, any attempt to delete the database instance is blocked. An administrator must first explicitly disable deletion protection before proceeding with the deletion. This two-step, intentional process helps prevent accidental deletions caused by human error or misconfigured automation.
Audit
This policy flags an AWS RDS Instance as
INCOMPLIANTif Deletion Protection is not set to true.RDS Instances are marked as
INAPPLICABLEif they meet any of the following conditions:... see more
Remediation
Remediation
Enable Deletion Protection
To prevent accidental deletion of Amazon RDS instances, enable the Deletion Protection feature on existing database instances.
From Command Line
Run the following command to enable deletion protection for the specified RDS instance:
aws rds modify-db-instance \
--region {{region}} \
--db-instance-identifier {{instance-id}} \
--deletion-protection \
--apply-immediatelyConsiderations
- The
--apply-immediatelyparameter applies the change as soon as possible and also applies any pending modifications.- Enabling deletion protection itself does not require downtime; however, applying other pending modifications may result in a brief service interruption.
- If the
--apply-immediatelyparameter is omitted, the change is applied during the next scheduled maintenance window.