Skip to content

Instantly share code, notes, and snippets.

View vmuneeb's full-sized avatar

Muneeb vmuneeb

View GitHub Profile
// source https://tvernon.tech/blog/move-dynamodb-data-between-regions
const AWS = require('aws-sdk')
// Use the scan method to get everything from the old table
const readAllDataFromTable = async ({ region, table }) => {
AWS.config.update({ region })
const documentClient = new AWS.DynamoDB.DocumentClient()
const params = {
TableName: table,
};