0.0.12 • Published 3 years ago

@oscar-bartman/dynamodb-export-csv v0.0.12

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

JavaScript Style Guide

dynamodb-export-csv

Tool that downloads a dynamodb table export stored in s3 as csv files.

Usage

Set the following variables through env:

namedescriptionexamplerequired
AWS_ACCESS_KEY_IDyour aws access key id...yes
AWS_SECRET_ACCESS_KEYyou aws access key...yes
AWS_REGIONyour aws region...yes
EXPORT_BUCKETname of the bucket that you stored your export in.arn:...yes

Download the export as csv. Specify which fields in the data you want under which header name.

$ export EXPORT_ARN = arn:aws:dynamodb:...
$ dynamodb-export-csv $EXPORT_ARN 'key=id,key=contact.email&header=email'

Outputs:

0.csv, 1.csv, ..., x.csv, arns.log

Using filters

You can pass filters by specifying which field you want to filter on and which value it should have. Currently only equals filters are supported:

$ dynamodb-export-csv $EXPORT_ARN 'key=id,key=contact.email&header=email' 'preferences.favoriteColor' 'BLUE'

Specifying which field to filter on is done via object-path so any of the object query syntax defined therein should work.

Development

Run tests

npm t

Debug this code

$ node --inspect-brk src/index.js
0.0.12

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago