bill
March 30, 2018, 7:04am
1
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
bill
April 2, 2018, 2:51am
2
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
1 Like
For those looking, there is a way to automate it now:
2 Likes
bill
October 30, 2018, 11:27pm
5
Yes, it works now.
Since Dynamodb
is resource in SLS, we can directly use Cloudformation codes in serverless.yml
.
1 Like
bill
June 17, 2019, 11:41am
6
JobsTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: <table_name>
...
PointInTimeRecoverySpecification:
PointInTimeRecoveryEnabled: true
1 Like
vilaboa
February 10, 2022, 7:22pm
7
great! so useful. thanks!