This tool exports data from Amazon DynamoDB and save them as individual JSON files.
Download a local version of DynamoDB from AWS1 and configure2 it.
After installation, launch the DyanmoDB instance with:
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDbYou are expected to have Python (2 or 3) and Node.js and you are working on a Unix-like system.
Then, initialize the environment with:
./init.sh
In both scan.js and dump.sh, fill in these three credentials of your target DynamoDB servers:
- accessKey
- secretKey
- region
In dump.sh, set the tables variable with the list of tables that you like to export.
You are advised to run this on a powerful machine (think 32GB memory and 8 cores) in the same availability zone as your target DynamoDB service.
./dump.sh
Depending on the size of data, machine performance, and networking, it may take a few minutes to multiple hours to export a table from DynamoDB.
MIT