Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ma91n/dynamo2csv
Export DynamoDB table to CSV
https://github.com/ma91n/dynamo2csv
csv dynamodb go
Last synced: 6 days ago
JSON representation
Export DynamoDB table to CSV
- Host: GitHub
- URL: https://github.com/ma91n/dynamo2csv
- Owner: ma91n
- License: mit
- Created: 2020-04-20T08:09:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-30T07:49:58.000Z (over 4 years ago)
- Last Synced: 2024-06-20T03:32:38.442Z (5 months ago)
- Topics: csv, dynamodb, go
- Language: Go
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dynamo2csv
Export DynamoDB table to CSV## Installation
```bash
go get -u github.com/laqiiz/dynamo2csv
```## Usage
All Data
```bash
./dynamo2csv -t > out.csv
```Filter Expression
```bash
./dynamo2csv -t \
-filter-expression 'contains(#ts, :s)' \
-expression-attribute-values '{":s":{"S":"15:00:00Z"}}' \
-expression-attribute-names '{"#ts":"timestamp"}' > out.csv
```## Options
```bash
$ dynamo2csv --help
Usage of ./dynamo2csv:
-c, --columns string DynamoDB Column names order for using csv output
--expression-attribute-names string Attribute names
--expression-attribute-values string Attribute values
--filter-expression string Filter Expression
--profile string AWS Profile Name
-t, --table string DynamoDB Table name that is export target
```