Does anyone know of any good solution for exportin...
# help
t
Does anyone know of any good solution for exporting / importing a dynamodb table to another dynamodb table?
t
depends on why you need to do this, can you share more?
t
We have a dynamo table with about 6000 rows in our stage environment that we want to import into our newly created production table
Probably not SST related..
t
6000 rows seems small so I'd maybe just read it out manually and write it back
t
yeah I guess we can do that 🙂
t
I do know there's a cli command for
dynamodb restore-table-from-backup
t
I have been down the google rabbit hole for a while and came across AWS Pipeline / AWS Glue and it seems to be way to complicated for our use case
r
I had a similar experience, I ended up writing a small utility to read and then write it
d
Ross, you essentially jsut wrote a script?
r
Yeah, a little CLI tool
Wasn't a tonne of data so did the job
t
g
I personally just did a full scan of the old table and put all of it into a new table and 6k rows is nothing that should be super super fast (did about 200k rows myself not sure how long it took but couldnt have been more than like 15mins, been a long time since I did that migration 😅)