In App Services you can create a Trigger on a MongoDB Atlas write operation in a collection but not when something happens in S3.
Using $out though, you can write something to an Atlas collection or an S3 bucket.
Maybe there is an equivalent service in AWS that listens to write operations in S3 and trigger an event?
Maybe this?
From a Lambda function you can use the MongoDB Driver or the Atlas Data API to write stuff into MongoDB.
Take a look at this blog post:
And this doc to avoid creating a new Connection with each lambda execution (big big anti pattern):
Cheers,
Maxime.
2 Likes