The dynamodb replication solution makes use of dynamodb table streams and lambda functions to replicate data cross regions in near real time.
This README serves as a 'quick start' guide for getting replication up and running. Full documentation can be found in the wiki.
DymanoDB replication infrastructure is managed entirely through cloudformation. To deploy, simply use the cloudformation template from the latest release to create a new cloudformation stack.
If you're making any changes of your own to the code, you will need to generate a new cloudformation template before you can deploy. To do this, execute the following steps:
-
Install dependencies:
$ npm install
-
Build the template:
$ npm run build
The generated template will be output to
dist/replication.cfn.json
- The json file can be deployed to aws through
aws cloudformation package \ --template-file dist/replicator.cfn.json \ --s3-bucket dynamodb-replication \ --output-template-file packaged-template.yaml \ --profile <aws_profile >