π 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
- Located in: π AWS DynamoDB
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- AWS Security Hub
- [[DynamoDB.2] DynamoDB tables should have point-in-time recovery enabled]([DynamoDB.2] DynamoDB tables should have point-in-time recovery enabled (https://docs.aws.amazon.com/securityhub/latest/userguide/dynamodb-controls.html#dynamodb-2)]
- Internal
dec-x-a822159a
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-a822159a | 1 |
Logicβ
- π§ prod.logic.yaml π’
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
INCOMPLIANT
ifPoint In Time Recovery Status
is 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