1. Install MongoDB instances in the specified regions. Then, install the ECS
instance in the main business region where the source MongoDB is. MongoShake
will be installed on this ECS instance later. In this solution, we use Terraform to build a MongoDB replica set and an ECS instance. 2. Configure the related security settings, such as accounts, security groups, and public network addresses on MongoDB
.3. Install and configure MongoShake
. 4. Activate the MongoShake service and run sample applications to read and write from MongoDB. Observe and check the data duplication process.5. Refer to the Terraform Template for Building Resources
to configure Terraform.6. Refer to the Python Script for Monitoring Data Synchronization
to write the Python script for monitoring the data synchronization of MongoDB.7. Refer to the Deployment Guide
to complete the deployment process step by step.