Dump DynamoDB data into a CSV file
Switch branches/tags
Nothing to show
Clone or download
edasque Merge pull request #47 from Lvirginie/Lvirginie-patch-1
Virginie first pull request Readme npm installs
Latest commit 2b57b15 Oct 16, 2018



Join the chat at https://gitter.im/edasque/DynamoDBtoCSV

This application will export the content of a DynamoDB table into CSV (comma-separated values) output. All you need to do is update config.json with your AWS credentials and region.

The output is comma-separated and each field is enclosed by double quotes ("). Double quotes in the data as escaped as "

This software is governed by the Apache 2.0 license.


typically, to use you'd run:

node dynamoDBtoCSV.js -t Hourly_ZEDO_Impressions_by_IP > output.csv

to export to CSV

Use -d to describe the table prior so you can have an idea of the number of rows you are going to export

node dynamoDBtoCSV.js -t Hourly_ZEDO_Impressions_by_IP -d

to get some information about the table.

Full syntax is:

node dynamoDBtoCSV.js --help
	Usage: dynamoDBtoCSV.js [options]


	-h, --help               output usage information
	-V, --version            output the version number
	-t, --table [tablename]  Add the table you want to output to csv
	-e, --endpoint [url]     Endpoint URL, can be used to dump from local DynamoDB
	-d, --describe


You'll need to install a few modules, including:

  • aws-sdk
  • commander
  • dynamodb-marshaler
  • papaparse

npm install

should do it.

Example output