Last month updated, DynamoDB has provided a data import feature🎉 (Reference). New tables can be created by importing data in S3 buckets.
The data export to S3 has been available so far, but now import is finally possible, and the combination of the two makes it possible to create and restore backups easily and conveniently!
I used this feature this time because I needed to redesign the DynamoDB partition key and sort key, and it was very useful. I know that many people have written scripts for data import when recreating Dynamo (I did too), but from now on, scripts are no longer necessary😎!
Please refer to the following instructions💡
Firstly, I export data to an S3 bucket. So I access the DynamoDB table and use the Export to S3 feature.
Set your S3 bucket and wait for the executed.
Now, I do the import feature using the exported data. Access to the "Imports from S3" menu from left side menu.
Set the import data information. Please note that S3 Exported data will be GZIP and JSON format by default.
Import function, extremely useful🤣🤣🤣
It would be very good when restoring from backups, recreating key settings, etc.😇😇😇
Thank you for reading!