Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Ensure RDS DB Instances in Backup Plan Rule

This rule ensures RDS DB instances are included in a backup plan.

RuleRDS DB instances should be in a backup plan
FrameworkGxP 21 CFR Part 11
Severity
High

RDS DB Instances Backup Plan for GxP 21 CFR Part 11

Rule Description:

In order to comply with the regulations outlined in GxP (Good Practices) and 21 CFR Part 11, it is necessary to establish a backup plan for the RDS (Relational Database Service) DB (Database) instances in use. This backup plan ensures data availability, integrity, and recoverability for GxP-related systems and applications.

Rule Details:

  1. 1.

    Scheduled Backups: Implement regularly scheduled backups to capture the state of the RDS DB instances. The frequency and retention period for backups should be defined based on business requirements and compliance regulations.

  2. 2.

    Backup Verification: Regularly validate the completion and integrity of the backup files to ensure that the backups are functional and can be used for recovery if required.

  3. 3.

    Backup Encryption: Enable encryption for RDS DB instance backups to protect the sensitive data stored in backups from unauthorized access. This encryption should be implemented using AWS KMS (Key Management Service).

  4. 4.

    Backup Storage: Store the backups in a location separate from the production environment to prevent data loss in case of disastrous events affecting the primary database. Utilize secure and durable storage options provided by AWS, such as Amazon S3 (Simple Storage Service) or Amazon Glacier.

  5. 5.

    Backup Testing: Periodically test the restoration process from backups to verify that the backups are functional and effective. This test should include restoring the database to ensure data integrity and system usability.

Troubleshooting:

If there are any issues or failures encountered during the backup process, the following troubleshooting steps can be followed:

  1. 1.

    Identify Error Messages: Review the error messages provided by AWS RDS or other relevant services to understand the cause of the backup failure.

  2. 2.

    Check IAM Permissions: Ensure that the IAM (Identity and Access Management) user or role executing the backup has the necessary permissions to perform backup operations on RDS instances and access the target backup storage location.

  3. 3.

    Verify Encryption Configuration: Validate if the correct encryption settings are configured for the RDS instance backups. Ensure that the AWS KMS encryption key is properly configured and accessible.

  4. 4.

    Check Backup Storage Permissions: Verify the permissions and access control configuration for the backup storage location to ensure that the RDS instances have the necessary privileges to write backups to the specified storage service.

Necessary Codes:

To implement the backup plan for RDS DB instances, the following AWS CLI command can be utilized:

aws rds create-db-snapshot --db-instance-identifier YOUR_DB_INSTANCE_IDENTIFIER --db-snapshot-identifier YOUR_BACKUP_NAME

Replace

YOUR_DB_INSTANCE_IDENTIFIER
with the identifier of your RDS DB instance and
YOUR_BACKUP_NAME
with the desired name for the backup.

Remediation Steps:

Follow the step-by-step guide below to implement a backup plan for RDS DB instances in compliance with GxP 21 CFR Part 11:

  1. 1.

    Identify RDS DB Instances: Determine which RDS DB instances fall under the scope of GxP compliance requirements.

  2. 2.

    Define Backup Frequency: Assess the business requirements and compliance standards to determine the appropriate frequency for scheduled backups. Consider factors such as data volatility and recovery point objectives.

  3. 3.

    Set Backup Retention Period: Define the retention period for the backups based on regulatory requirements, business needs, and available storage capacity.

  4. 4.

    Enable Backup Encryption: Implement encryption for RDS DB instance backups using AWS KMS. Configure the KMS encryption key to be used for backup encryption.

  5. 5.

    Choose Backup Storage: Select a secure and durable storage solution provided by AWS, such as Amazon S3 or Amazon Glacier, to store the backups.

  6. 6.

    Execute Backup Creation: Use the AWS CLI or AWS Management Console to create a snapshot (backup) of the RDS DB instances. Specify the necessary parameters like the identifier for the DB instance and the name for the backup.

  7. 7.

    Verify Backup Completion: Regularly check the backup status to ensure that the backups are successfully created without any errors. Use AWS CLI or AWS Management Console to verify the completion of backups.

  8. 8.

    Perform Backup Testing: Periodically perform restoration tests from the backups to ensure data integrity and system usability. Validate the restoration process and data consistency.

  9. 9.

    Monitor Backup Compliance: Continuously monitor and audit the backup plan to ensure compliance with GxP 21 CFR Part 11 regulations. Regularly review backup logs and performance metrics to identify any deviations or potential issues.

By following these steps, you can establish a backup plan for RDS DB instances that complies with GxP 21 CFR Part 11 standards, thereby ensuring data availability and recoverability for GxP-related systems and applications.

Is your System Free of Underlying Vulnerabilities?
Find Out Now