https://github.com/aeberdinelli/dynago
A CLI tool to painless transfering data from MongoDB to DynamoDB.
https://github.com/aeberdinelli/dynago
aws aws-cli aws-sdk cli dynamodb inquirer mongodb node
Last synced: 3 months ago
JSON representation
A CLI tool to painless transfering data from MongoDB to DynamoDB.
- Host: GitHub
- URL: https://github.com/aeberdinelli/dynago
- Owner: aeberdinelli
- Created: 2020-02-10T20:36:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T18:17:26.000Z (over 3 years ago)
- Last Synced: 2025-05-04T07:33:52.555Z (about 1 year ago)
- Topics: aws, aws-cli, aws-sdk, cli, dynamodb, inquirer, mongodb, node
- Language: JavaScript
- Size: 131 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dynago
A CLI tool to easily copy MongoDB database to DynamoDB format, generating new ids and keeping relationships.
## Install
Just run: `npm install -g dynago`
## Usage

### Examples
```bash
# Transfer data to dynamo
dynago transfer
# Transfer data to tables with prefix
dynago transfer --prefix exported-
# Transfer data to local dynamo and custom region
dynago transfer --endpoint http://localhost --region us-east-1
# Transfer data from custom database to local dynamo and custom region
dynago transfer --mongo mongodb://localhost:27017/custom-database --endpoint http://localhost:8000 --region us-west-2
# Clear all temporal data
dynago clear
```
## Info
The script will copy all the data from a MongoDB database into DynamoDB. It will create the tables automatically, as well as new Ids (based in uuid), and then you can run `dynago relate` to update the old _id to new ones.
It will also rename the _id property to id.