This rule ensures that DynamoDB table point-in-time recovery is enabled to maintain data integrity.
Rule | DynamoDB table point-in-time recovery should be enabled |
Framework | FedRAMP Moderate Revision 4 |
Severity | ✔ Low |
DynamoDB Table Point-in-Time Recovery for FedRAMP Moderate
Point-in-Time Recovery (PITR) is a feature provided by AWS DynamoDB that allows you to restore your DynamoDB table data to any second in time within the last 35 days. Enabling PITR can help you recover from accidental writes or deletes in your DynamoDB table. For FedRAMP Moderate Revision 4 compliance, maintaining this capability is critical to safeguard sensitive data and ensure continuity of operations.
Enabling Point-in-Time Recovery
Step-by-Step Guide
AWS Management Console:
AWS CLI: Use the
update-continuous-backups
AWS CLI command:aws dynamodb update-continuous-backups --table-name YourTableName --point-in-time-recovery-specification PointInTimeRecoveryEnabled=true
Replace
YourTableName
with the actual name of your DynamoDB table.AWS SDKs: Use the appropriate AWS SDK method for your programming language to enable PITR.
Troubleshooting Steps
If you encounter issues while enabling PITR, consider the following troubleshooting steps:
Permissions: Ensure that your IAM role has the necessary permissions to manage DynamoDB backups (
dynamodb:UpdateContinuousBackups
).Resource Existence: Verify that the DynamoDB table exists. If it does not, the update command will not work.
CLI/SDK Configuration: Ensure your AWS CLI or SDK is correctly configured with valid access keys, secret keys, and the correct region.
Validation
To confirm that PITR is enabled, do the following:
AWS Management Console
AWS CLI
Run the following command to check the PITR status:
aws dynamodb describe-continuous-backups --table-name YourTableName
You should see "PointInTimeRecoveryDescription" with a status of "ENABLED."
Remediation
In the event that you need to restore your table from a PITR backup, use the AWS Management Console or the AWS CLI:
AWS Management Console:
AWS CLI: Use the
restore-table-to-point-in-time
command:aws dynamodb restore-table-to-point-in-time --source-table-name YourTableName --target-table-name NewTableName --restore-date-time TimeStamp
Replace
YourTableName
with the source table name, NewTableName
with the new table name, and TimeStamp
with the desired restore time.By following these best practices, you can ensure that your DynamoDB tables are compliant with FedRAMP Moderate requirements and are utilizing the PITR feature effectively to safeguard your data.