How should I use CloudFormat and Lambda Function to create tables and indexes for DocumentDB and achieve S3 bucket to bucket replication

0

Questions such as titles,Can you tell me the process or give me some templates,thanks! how to real-time monitoring of A bucket, copying files to B bucket while adding them to A bucket ,and when I build a new environment I want copy A bucket's object to B bucket. and how to create tables and indexes for DocumentDB by CloudFormat and Lambda Function.I can hardly find any information for this two questions.

profile picture
Dgk
asked 9 months ago194 views
1 Answer
0

Hiya , do the following:

Create a CloudFormat template that defines the resources you need, such as the DocumentDB cluster, the S3 buckets, and the Lambda function. Upload the CloudFormat template to Amazon S3. Create a new Lambda function that uses the change streams API to read changes from the DocumentDB cluster and write them to the S3 bucket. Configure the Lambda function to be triggered by Amazon EventBridge. Deploy the CloudFormat template. Once the CloudFormat template is deployed, the Lambda function will start reading changes from the DocumentDB cluster and writing them to the S3 bucket. The S3 bucket to bucket replication will be achieved automatically.

profile picture
answered 9 months ago
  • thanks for you answer,I want know how to real-time monitoring of A bucket, copying files to B bucket while adding them to A bucket ,and when I build a new environment I want copy A bucket's object to B bucket. and how to create tables and indexes for DocumentDB by CloudFormat and Lambda Function.I can hardly find any information for this two questions.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions