An open API service indexing awesome lists of open source software.

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: 5 months ago
JSON representation

A CLI tool to painless transfering data from MongoDB to DynamoDB.

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
![help](https://raw.githubusercontent.com/aeberdinelli/dynago/master/docs/help.png)

### 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.