Create and deploy the change streams app watching all changes from the cluster and write them as documents to a separate cluster
pip install -r requirements.txt
Make a copy of config_sample.py
and name it config.py
. Fill the variables with appropriate values for your deployments.
python3 main.py
Use functions
from AtlasAppService folder and schedule it with triggers
. You can also export this application to deploy quickly.
This uses Atlas Admin API.
cd CreateExportSnapshot
pip install -r requirements.txt
Make a copy of config_sample.py
and name it config.py
. Fill the variables with appropriate values for your deployments.
python3 main.py
- main.py - Change Streams Application (Python)
- AtlasAppService - Scheduled Trigger Application (JavaScript)
- CreateExportSnapshot - Create a snapshot and export to S3 (Python)
https://ankurraina.medium.com/sync-mongodb-data-in-real-time-to-s3-without-aws-dms-72eaf7cf04e1