This rule ensures that DynamoDB tables are safeguarded by a backup plan for data protection.
Rule | DynamoDB table should be protected by backup plan |
Framework | GxP EU Annex 11 |
Severity | ✔ High |
DynamoDB Backup Plan for GxP EU Annex 11 Compliance
Rule Description:
To ensure compliance with GxP EU Annex 11 regulations, it is essential to protect the data stored in your DynamoDB tables by implementing a well-defined backup plan. This backup plan will help safeguard critical information, provide data availability in case of accidental data loss or corruption, and allow for efficient recovery from any potential disasters.
Troubleshooting Steps:
In most cases, troubleshooting steps are not required for backup plan implementation. However, if you encounter any issues while setting up or managing the backup plan, you can refer to the following steps:
Necessary Codes:
In order to implement a backup plan for your DynamoDB table, you can use the following code snippet as a reference. Please replace the placeholders (e.g.,
your-table-name
) with actual values according to your environment:aws backup create-backup-plan \ --backup-plan **your-backup-plan-name** \ --rules '{"RuleName": "DynamoDB-Backup", "TargetBackupVaultName": "your-backup-vault-name", "ScheduleExpression": "cron(0 0 * * ? *)", "StartWindowMinutes": 120, "CompletionWindowMinutes": 600, "Lifecycle": {"MoveToColdStorageAfterDays": 30, "DeleteAfterDays": 90}, "RecoveryPointTags": {"Environment": "Production"}}' \ --backup-plan-tags '{"Application": "MyApp"}' aws backup create-backup-selection \ --backup-plan-id **your-backup-plan-id** \ --backup-selection '{"SelectionName": "DynamoDB-Selection", "IamRoleArn": "your-iam-role-arn", "Resources": ["arn:aws:dynamodb:**your-region**:**your-account-id**:table/your-table-name"]}'
Steps for Backup Plan Implementation:
1. Create a Backup Vault:
2. Define Backup Plan:
ScheduleExpression
parameter to define the frequency of backups.StartWindowMinutes
and CompletionWindowMinutes
as needed for your environment.Lifecycle
section.3. Select DynamoDB Table for Backup:
Resources
field.4. Validate and Monitor Backups:
By following these steps and implementing a backup plan for your DynamoDB table, you will comply with GxP EU Annex 11 regulations and ensure the availability and protection of your critical data.