I would like to create an isolated local environment (running on linux) for development and testing.
How can I export data (~10 tables and ~few hundred items of data) from AWS DynamoDB ind import into a local DynamoDB instance?
I've not tried this, but you should be able to use the CLI.
First extract the data into local JSON files
aws dynamodb scan --table-name MYLIVETABLE --output json > pathtofile/MYLIVETABLE.json
And then load that data into your local DynamoDB instance
aws dynamodb batch-write-item --table-name MYLOCALTABLE --request-items file://pathtofile/MYLIVETABLE.json --endpoint-url http://localhost:8000
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With