Skip to content

Dynamodb point in time recovery is not enabled for global tables

Description

Enabling point-in-time recovery (PITR) for Amazon DynamoDB global tables can help to protect against data loss due to accidental write or delete operations, or due to data corruption. With PITR enabled, you can restore a global table to any point in time within the specified recovery window (typically up to 35 days). This can be helpful if you need to undo unintended changes or recover from data corruption.

Code Example

yaml
Resources:
  MyCloudFrontDistribution:
    Type: AWS::DynamoDB::GlobalTable
    Properties: 
            ...
      Replicas: 
+       - PointInTimeRecoverySpecification: 
+           - PointInTimeRecoveryEnabled

Remediation

CloudFormation

  • Resource: AWS::DynamoDB::GlobalTable
  • Arguments: Properties.DistributionConfig.Logging/Bucket

Rule Details

FieldValue
IDIAC-0214
SeverityMEDIUM
IaC TypeCloudformation
FrameworksCloudFormation, Terraform, TerraformPlan, Serverless
Checkov IDCKV_AWS_165

References