Can I restore a backup to an existing dynamodb table but not create a new dynamodb table.

0

I am searching for solutions to restore an existing dynamodb table but not to create new table instead overwrite the existing table, which I have a backup record use AWS Backup. I searched on documents about Dyanmodb and AWS Backup and try on console so I think we can not restore a existing table without create a new table unless we delete existing table and then use backup record to restore table with the same name. I try some backup solutions use AWS Backup, DynamoDB Backup, Point-int-time recovery but all of it require create new table to restore unless delete the existing table. Are there any solutions for my problem. Thanks.

heno7
已提問 8 個月前檢視次數 961 次
2 個答案
1

As Jason stated this cannot be achieved using native backup and restore features. But as you are looking for alternative suggestions here are some. If you are using Backups or PITR and you need to import the data to an existing table you can do a couple of things:

  1. For PITR -> Export to S3
  • Use a AWS Glue or Lambda (data size dependent) to read from S3 and load into destination table
  1. For Backup -> Backup to new table
  • Use the same steps as above or read directly from the temporary table and write to destination table.
profile pictureAWS
專家
已回答 8 個月前
0

Your research is correct that DynamoDB restores always go to a new table.

AWS
已回答 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南