This rule states that RDS DB instances must have deletion protection enabled to prevent accidental data loss.
Rule | RDS DB instances should have deletion protection enabled |
Framework | NIST 800-53 Revision 5 |
Severity | ✔ Critical |
Rule Description
RDS (Relational Database Service) DB instances should have deletion protection enabled to comply with the security requirement outlined in the NIST (National Institute of Standards and Technology) 800-53 Revision 5 framework. Deletion protection ensures that accidental or malicious deletions of DB instances are prevented, providing an additional layer of security to safeguard the data stored within the instances.
Enabling deletion protection restricts the ability to delete or modify the DB instance including automated backups, manual snapshots, and Read Replicas. This rule helps to prevent the potential loss of critical data due to accidental deletions or unauthorized actions.
Troubleshooting Steps
If deletion protection is not enabled for an RDS DB instance, follow the troubleshooting steps below:
Necessary Codes
aws rds describe-db-instances --db-instance-identifier <db_instance_id> --query "DBInstances[].DeletionProtection"
aws rds modify-db-instance --db-instance-identifier <db_instance_id> --deletion-protection true
Step-by-Step Guide for Remediation
Follow the steps below to enable deletion protection for an RDS DB instance:
Replaceaws rds modify-db-instance --db-instance-identifier <db_instance_id> --deletion-protection true
<db_instance_id>
with the actual identifier of the DB instance.Replaceaws rds describe-db-instances --db-instance-identifier <db_instance_id> --query "DBInstances[].DeletionProtection"
<db_instance_id>
with the actual identifier of the DB instance.By following these steps, you can ensure that deletion protection is enabled for RDS DB instances, meeting the NIST 800-53 Revision 5 compliance requirement.