Other Articles

RDS DB Instance – Enable Deletion Protection

This check ensures that deletion protection is enabled for Amazon RDS DB instances. Enabling deletion protection prevents accidental removal of critical databases and helps avoid data loss.

Check Details

  • Resource: RDS DB Instance
  • Check: Enable RDS instance deletion protection
  • Risk: Accidental deletion of the database leading to permanent data loss

Remediation via AWS Console

  1. Log in to the AWS Management Console and open the Amazon RDS console. Amazon RDS Console
  2. In the left navigation pane, click Databases and select the affected RDS DB instance.
  3. Click Modify and scroll to the Deletion protection section.
  4. Enable Deletion protection. Modify RDS instance
  5. Click Continue, then choose Modify DB instance.

Remediation via AWS CLI

  1. Log in to the AWS Management Console and click the CloudShell icon (>_) in the top-right corner. AWS CloudShell
  2. Enable deletion protection for the RDS DB instance:
    
    
    aws rds modify-db-instance \
     --db-instance-identifier <db-instance-id> \
     --deletion-protection \
     --apply-immediately
    

Replace <db-instance-id> with your actual RDS DB instance identifier.