π‘οΈ AWS DynamoDB Table Point In Time Recovery is not enabledπ’
- Contextual name: π‘οΈ Table Point In Time Recovery is not enabledπ’
- ID:
/ce/ca/aws/dynamodb/table-point-in-time-recovery - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- AWS Security Hub: [DynamoDB.2] DynamoDB tables should have point-in-time recovery enabled
- Internal:
dec-x-a822159a
Similar Internal Rulesβ
| Rule | Policies | Flags |
|---|---|---|
| βοΈ dec-x-a822159a | 1 |
Descriptionβ
Descriptionβ
Ensure that Point-in-Time Recovery (PITR) is enabled for all Amazon DynamoDB tables. PITR is a fully managed, continuous backup feature that automatically records all changes to table data, allowing recovery to any second within the preceding 35-day retention window. It protects against accidental writes, deletes, and corruption by enabling precise, time-based data restoration.
Rationaleβ
Enabling PITR provides an automated and resilient data protection mechanism without requiring manual backup workflows or third-party solutions.This enhances data durability and minimizes the Recovery Time Objective (RTO) in the event of data loss or operational errors.
Impactβ
Enabling PITR incurs additional charges based on the total size of the DynamoDB table, including table data and any associated local secondary indexes.
Auditβ
This policy marks an AWS DynamoDB Table as
INCOMPLIANTifPoint In Time Recovery Statusis set to DISABLED.
Remediationβ
Remediationβ
From Command Lineβ
To enable Point-in-Time Recovery (PITR) for an existing DynamoDB table, use the following AWS CLI command:
aws dynamodb update-continuous-backups \
--table-name {{table-name}} \
--point-in-time-recovery-specification PointInTimeRecoveryEnabled=TrueUsing AWS CloudFormationβ
- CloudFormation template (YAML):
AWSTemplateFormatVersion: '2010-09-09'
Description: Enable Point-in-Time Recovery for an existing DynamoDB table
Parameters:
TableName:
Type: String
Description: Name of the existing DynamoDB table
Resources:
PointInTimeRecovery:
Type: AWS::DynamoDB::Table
Properties:
TableName: !Ref TableName
PointInTimeRecoverySpecification:
PointInTimeRecoveryEnabled: true
RecoveryPeriodInDays: 35