- 
                Notifications
    
You must be signed in to change notification settings  - Fork 5
 
Setup
The replication solution is deployed to AWS using CloudFormation. A CloudFormation preprocessor is used to minify the lambda function source code and inject it into the json template prior to creating the stack.
- 
Clone the repository:
git clone https://github.com/Signiant/dynamodb-replication.git
cd dynamodb-replication - 
Install dependencies:
npm install - 
Run the build process:
npm run build 
The build process will output the final CloudFormation template to dist/replicator.cfn.json
To deploy the replication solution, navigate to CloudFormation on the AWS console and create a new stack using the final template. The CloudFormation stack must be created in same region as the tables you wish to replicate. When creating the CloudFormation stack, you will be prompted to enter values for the following parameters:
- ReplicaRegion - The destination region for replication
 - ApiName - The name for the API Gateway API
 - ControllerTableName - The name for the DynamoDB controller table
 - PrefixTableName - The name for the DynamoDB prefix table
 - DelayTheshold - An alarm will be triggered if replication delay is greater than or equal to this amount of time (in minutes)
 - DelayNotifications - Should notifications be sent when a replication falls too far behind (if set to false, ignore the next two parameters)
 - DelayEndpointProtocol - The type of endpoint delay notifications should be sent to
 - DelayEndpoint - The endpoint delay notifications should be sent to