https://github.com/polyseam/dynout
command-line tool for extracting the contents of a DynamoDB table
https://github.com/polyseam/dynout
Last synced: 11 months ago
JSON representation
command-line tool for extracting the contents of a DynamoDB table
- Host: GitHub
- URL: https://github.com/polyseam/dynout
- Owner: polyseam
- License: apache-2.0
- Created: 2023-06-16T05:54:11.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-12T17:49:57.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T17:20:50.247Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dynout
A command-line tool for extracting the contents of a DynamoDB table.
## configuration
Dynout requires 3 environment variables to be set:
- `AWS_ACCESS_KEY_ID`
- `AWS_SECRET_ACCESS_KEY`
- `AWS_REGION`
## usage
Dynout uses a config file like the one below.
The attributes Array is ordered and the order represents the order of the
columns in the output. The first attribute will be used to sort the results.
The `output.format` property can be set to `"csv"` or `"json"`, and it defaults
to JSON.
```jsonc
{
"table_name": "polyseam-events",
"attributes": [
"event_timestamp",
"event_type",
"redirect_target",
"event_version",
"request_pathname",
"is_bot",
"user_agent_header",
"referer_header",
"utm_id",
"utm_medium",
"utm_campaign",
"utm_content",
"utm_source",
"x_forwarded_for_header"
],
"project_nulls": false, // if true the JSON output will have a `null` value for missing attributes
"output": {
"format": "csv"
}
}
```