Copy the AWS DyanamoDB table definition to another region.
This is a script program for copying the tables created in DynamoDB to another region. This program has been tested on Node.js version 12. So node.js and npm need to be installed. We are not responsible for any problems that occur in this program.
npm install aws-sdk
Move to the folder with index.js and enter the following command.
node index.js ap-northeast-1 us-west-2
In this example, a table is created in us-west-2
from the table definition of ap-northeast-1
.
An error will occur if a table with the same name exists in the copy destination.