Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: RDS DB Instance Backup Should Be Enabled

This rule states that RDS DB instance backup must be enabled for compliance.

RuleRDS DB instance backup should be enabled
FrameworkGxP EU Annex 11
Severity
Medium

RDS DB Instance Backup Configuration for GxP EU Annex 11 Compliance

Overview of the Rule

In the context of EU Annex 11, which sets forth the guidelines for computerized systems used as part of GMP (Good Manufacturing Practices) within the pharmaceutical industry, having reliable and secure data backups is a critical component. For Amazon RDS (Relational Database Service) instances operating under GxP conditions, it’s imperative to have backups enabled to guarantee data integrity, availability, and recoverability in case of system failures or data corruption.

Troubleshooting Steps

If backups are not properly configured for your RDS instance, it’s crucial to establish a troubleshooting process to ensure compliance with EU Annex 11. Here’s what you need to check:

1. Verify Backup Settings

Check if automatic backups are turned on and if the retention period meets the regulatory requirements.

2. Inspect Backup Window

Ensure the backup window is defined during periods of low system usage to minimize performance impact.

3. Confirm Manual Snapshot Frequency

For additional safety, make sure that manual snapshots are created regularly according to the organization's SOPs.

4. Check Backup Accessibility

Verify that backups are easily accessible and that the restore process has been tested to ensure it works correctly.

If you identify issues during these checks, proceed with the remediation steps outlined below.

Necessary Codes and CLI Commands

Check Current Backup Configuration

aws rds describe-db-instances \
    --db-instance-identifier <your-db-instance-id> \
    --query 'DBInstances[*].{DBInstanceIdentifier:DBInstanceIdentifier,BackupRetentionPeriod:BackupRetentionPeriod,PreferredBackupWindow:PreferredBackupWindow}' \
    --output table

Replace

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

Enable or Modify Backup Retention

aws rds modify-db-instance \
    --db-instance-identifier <your-db-instance-id> \
    --backup-retention-period <desired-retention-period> \
    --apply-immediately

Ensure you replace

<your-db-instance-id>
with your database identifier and
<desired-retention-period>
with the number of days you want to retain backups (recommended to be at least 7 for compliance).

Set Preferred Backup Window

aws rds modify-db-instance \
    --db-instance-identifier <your-db-instance-id> \
    --preferred-backup-window <desired-backup-window> \
    --apply-immediately

Here,

<desired-backup-window>
should be replaced with a time window in HH:MM-HH:MM format.

Step by Step Guide for Remediation

Step 1: Enable Automated Backups

Ensure that automated backups are enabled with the appropriate retention period.

  1. 1.
    Log in to the AWS Management Console.
  2. 2.
    Navigate to the RDS Dashboard and select the relevant RDS DB instance.
  3. 3.
    Click on the "Modify" button.
  4. 4.
    In the "Backup" section, set "Backup retention period" to the desired number of days.
  5. 5.
    Apply the changes immediately or during the next maintenance window.

Step 2: Configure Backup Window

Set a specific backup window to avoid performance impact during peak hours.

  1. 1.
    Under the "Backup" section of the instance modification page, specify the "Backup window" according to the organization’s policies and workload patterns.
  2. 2.
    Apply the changes.

Step 3: Take Manual Snapshots Regularly

In addition to automated backups, perform manual snapshots.

  1. 1.
    In the RDS Dashboard, select the “Snapshots” option.
  2. 2.
    Click on “Take Snapshot” and provide the necessary details.
  3. 3.
    Save the snapshot.

Step 4: Test Restore Process

Regularly test the restore process to ensure backup integrity.

  1. 1.
    In RDS Dashboard, select "Snapshots."
  2. 2.
    Choose a snapshot and select "Actions."
  3. 3.
    Click on "Restore Snapshot" and follow the on-screen instructions.

By following these steps and ensuring backups are enabled and properly configured, your RDS instances should remain compliant with GxP EU Annex 11 regulations. Regular monitoring and auditing of backup processes are also essential to maintain compliance and data integrity.

Is your System Free of Underlying Vulnerabilities?
Find Out Now