'restoring DynamoDB table from AWS Backup

I am using AWS Backup to back up some DynamoDB tables. Using the AWS Backup console to restore the back-ups I am prompted to restore to a new table. This works fine but my tables are deployed using CloudFormation, so I need the restored data in the existing table.

What is the process to get the restored data into the existing table? It looks like there are some third-party tools to copy data between tables but I'm looking for something within AWS itself.



Solution 1:[1]

At this time, AWS has no direct way to do this (though it looks like you can export to some service, then import from that service into an existing table).

I ended up writing my own code to do this.

Solution 2:[2]

I recently had this issue and actually got cloudformation to work quite seamlessly. The process was

  1. Delete existing tables directly from dynamodb (do not delete from cloudformation)
  2. Restore backup to new table, using the name of the deleted table
  3. In cloudformation, detect drift, manually fix any drift errors in dynamodb, and then detect drift again

After this, the CFN template was healthy

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 tschumann
Solution 2 Shane