https://github.com/amulyakashyap09/dynamodb-copy-data
copies data from one dynamodb table to another in same region.
https://github.com/amulyakashyap09/dynamodb-copy-data
copy-data dynamo-copy-data dynamodb
Last synced: 10 months ago
JSON representation
copies data from one dynamodb table to another in same region.
- Host: GitHub
- URL: https://github.com/amulyakashyap09/dynamodb-copy-data
- Owner: amulyakashyap09
- License: gpl-3.0
- Created: 2017-05-05T19:38:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-05T19:43:49.000Z (over 8 years ago)
- Last Synced: 2025-02-07T18:54:07.814Z (11 months ago)
- Topics: copy-data, dynamo-copy-data, dynamodb
- Language: JavaScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dynamodb-copy-data
copies data from one dynamodb table to another in same region.
---
```npm install dynamodb-copy-data --save```
---
const Promise = require('bluebird');
const custom = require('dynamodb-copy-data');
Promise.coroutine(
function*() {
let credentials = {
accessKeyId: "xxxxxxxxxxxxxxxxxxxx",
secretAccessKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
region: "us-east-1"
};
let result = yield custom.copy("sourceTableName", "destinationTableName", credentials);
console.log(result);
}
)().catch((ex)=> {
console.log("FINAL EXCEPTION : ", ex);
});