https://github.com/fearlesssolutions/aws-dynamodb-migration
  
  
     
    https://github.com/fearlesssolutions/aws-dynamodb-migration
  
        Last synced: 3 months ago 
        JSON representation
    
- Host: GitHub
- URL: https://github.com/fearlesssolutions/aws-dynamodb-migration
- Owner: FearlessSolutions
- Created: 2022-03-16T19:53:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T22:19:39.000Z (over 2 years ago)
- Last Synced: 2025-02-16T02:28:37.968Z (9 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 11
- Forks: 0
- Open Issues: 1
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          ## AWS - DynamoDB Migration Utility
This utility allows you to export data from an AWS DynamoDB table, and import the exported data to another table.
### Setup 
1) nvm install && nvm use
### Usage
* Export: Exports records from a DynamoDB table to a file
`npm run export <-- --table  --file  [--dryrun] [--profile ]`
* Import: Imports records from a file to a DynamoDB table
`npm run import <-- --table  --file  [--dryrun] [--writeCapacity  ][--profile ]`
### Arguments
* table - The name of the table in DynamoDB
* file - The path & name of the file that either contains the records to import or where you want to export the records to
* dryrun - When set, the process does not create a file or update DynamoDB
* writeCapacity - The number of records to write in each batch. Defaults to 1, max of 25
* profile - The AWS profile to use for credentials