This rule ensures that the RDS DB instance is protected by a backup plan to maintain data integrity and availability.
Rule | RDS DB instance should be protected by backup plan |
Framework | SOC 2 |
Severity | ✔ High |
Amazon RDS Backup Compliance for SOC 2
Overview
SOC 2 compliance is a framework for managing data and ensuring the security, availability, privacy, and confidentiality of customer information. As such, an AWS RDS DB instance must adhere to strict backup policies to meet SOC 2 requirements. The rule here is that your RDS instances must be regularly backed up to prevent data loss and allow for recovery in the event of an incident.
RDS Backup Requirements for SOC 2
Troubleshooting Backup Issues
If backups are not functioning as expected, follow these steps:
Enabling and Configuring RDS Backups via AWS CLI
Enabling Automated Backups
aws rds modify-db-instance \ --db-instance-identifier <your-db-instance-id> \ --backup-retention-period <desired-retention-period-in-days> \ --apply-immediately
Replace
<your-db-instance-id>
with your actual DB instance identifier and <desired-retention-period-in-days>
with an integer representing the number of days you want to retain your backups (usually between 7-35 days, in alignment with your SOC 2 policy).Configuring Backup Encryption
aws rds modify-db-instance \ --db-instance-identifier <your-db-instance-id> \ --storage-encrypted \ --kms-key-id <your-kms-key-id> \ --apply-immediately
<your-kms-key-id>
is the identifier for the AWS KMS key that you want to use to encrypt your backups.Setting Backup Window
aws rds modify-db-instance \ --db-instance-identifier <your-db-instance-id> \ --preferred-backup-window <time-window> \ --apply-immediately
<time-window>
should be replaced with your desired backup window time, using the format hh24:mi-hh24:mi
(e.g., 00:00-03:00
).Step by Step Guide for Remediation
To ensure SOC 2 compliance for RDS backup:
Following these guidelines and using the commands provided will help ensure that your RDS DB instances comply with SOC 2 backup requirements, enhancing your readiness for compliance audits.