New – Amazon DynamoDB Continuous Backups and Point-In-Time Recovery (PITR)

AWS announced the new feature to backup dynamoDB easily on 26th March 2018

New – Amazon DynamoDB Continuous Backups and Point-In-Time Recovery (PITR)

Gathering the details on how to enable both features (Point-in-time Recovery and On-Demand backup) in serverless framework.

if you already did something, please share.

2 Likes

Seems currently there is no way to enable/disable point-in-time recovery setting with AWS Cli or API:

https://docs.aws.amazon.com/cli/latest/reference/dynamodb/restore-table-to-point-in-time.html

You must manually set up the following on the restored table:

Auto scaling policies
IAM policies
Cloudwatch metrics and alarms
Tags
Stream settings
Time to Live (TTL) settings
Point in time recovery settings .   <====
2 Likes

I setup this yesterday.

I initially had my DynamoDB tables in Paris eu-west-3 region, but it turned out that this region doesn’t get any of the fancy backup abilities.

Especially the Point-in-Time, which is automated and fully managed by AWS.

I therefore migrated all my tables to Ireland eu-west-1 region, which supports the same features as those in us, and is the cheapest in europe.

I haven’t had the “pleasure” to use it yet :wink:

1 Like

For those looking, there is a way to automate it now:

2 Likes

Yes, it works now.

Since Dynamodb is resource in SLS, we can directly use Cloudformation codes in serverless.yml.

1 Like
  JobsTable:
    Type: AWS::DynamoDB::Table
    Properties:
      TableName: <table_name>
      ...
      PointInTimeRecoverySpecification:
        PointInTimeRecoveryEnabled: true
1 Like

great! so useful. thanks!