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

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.

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);
});