How to Create a Highly Secure MongoDB and Lambda Connection?
★ MongoDB Atlas and AWS Lambda - Step by Step Setup with Secure Connection using VPC Peering
How to securely communicate between AWS #Lambda and #MongoDB Atlas with #VPC #Peering.
In this episode, we will discuss the following topics.
1. Architecture Overview - MongoDB and AWS Lambda.
2. Creating MongoDB Atlas Cluster with VPC peering setup.
3. Creating AWS VPC with a VPC peering setup.
4. Testing the peering connection.
⭐️ Hey guys, if you find this video valuable, check my "The Complete Guide to Build Serverless Apps on AWS (2022)" course below👇
🚀 www.udemy.com/course/building...
#AWS #Mongodb #Mongodbatlas #Vpcpeering #Enlear
★Resources
Github - github.com/mjzone/mongodb-lambda
Serverless Config Credentials - www.serverless.com/framework/...
Serverless Create NodeJS Service - www.serverless.com/framework/...
VPC Configuration www.serverless.com/framework/...
💖 Become a Patron: Show Support 💖
/ cloudtutorials
Пікірлер: 46
Great content, well paced. All steps are more than clear. I have worked with Mongo and Lambdas in the past and I can tell you that my VPC connections have never been properly setup. This is a hidden gem video. Thanks 👨🏽💻
@EnlearAcademy
3 жыл бұрын
Thanks for the nice comment Jonathan. Cheers!
Hi, thanks for the video. Just a note about current MongoDB Atlas plans (in 2023) - It seems Atlas now offers slightly different plans - notably a "Serverless" one where VPC are available when choosing Atlas with AWS or Azure.
Thanks a lot sir. Here is a quick hint please setup this on a dedicated cluster only. I wasted my 6-7 hours just trying to get it to work on serverless MongoDB
i just came here for establishment of peering connection and was amazed to see how easy it is! Thanks for the content! Liked
Awesome video with a clear explanation !!
Really great video man! Thanks
very smooth and clear...
Awesome . Keep up the good work !
Awesome video and very clear explanation. Keep up the good work.
Great Video, Thanks
Thank you so much❤
Very fantastic content , which I was looking for. Thanks a lot
Just thought of using MongoDB instead of Dynamodb. Thank u❤️
Nicely explained Thanks
Great content. Keep it up!
It's really help me a lot..thanks for such a valuable demo..
Another Great content :)
Great Video
Thank you for this! Can you please do more tutorials on MongoDB Atlas?
thanks
Hi, The video is great. I was searching for something like this to connect to mongodb atlas.I am gonna try it now.
Thankfully I found this, excellent tutorial. I'd request if you could do a production level MongoDB Atlas, GraphQL, Lambda communication. There is a persisting GraphQL timeout error which comes when using MongoDB Atlas
Great content and video, so easy the understand, I got a question do you know any example of this video through serverless framework or aws acloudformation, in order to create all step by infrastructure as code and no manually from console? thanks so much.
great video, quick question since it connects to lambda functions that means all other aws services can be used via this peering connection, cognito api gateway etc? currently undecided between dynamo db and mongo and current project requires geoquerying and mongo seems to offer a much better and cost efficient implementation of this while aws elastic search is pretty crap so far
Great! and which VS Code's theme are you using? I like it a lot.
Great Video ! Awesome Content ! Can you pls create a video for connecting MongoDB Atlas with AWS Glue using AWS Glue's MongoDB Atlas connector?
Do you need to create any inbound rules for the security group?
Hi - Question to your videos about Mondgodb peering and your video about setting up Fargate cluster. I followed your video about using Fargate for docker apps. In that you use a Loadbalancer to protect incoming traffic to the private network, and you setup a NAT gateway so the containers can talk from private and out. I did that, and I then whitelisted my LB IP plus Global Accellerator IP in mongodb to connect my cluster. I did not think it was the correct way to connect my db, and also saw this video on Peering the connection instead. My question is, If I Peer my VPC (that holds both my public and private subnets) to my Mongodb Atlas cluster, does I then not need the NAT gateway from the Private subnet to the Internetgateway? and I guess I would still need my LB to protect any incoming traffic to the private subnet.
Hello. I recently discovered you. Can you do a series on CDK? Thanks.
Amazing video thanks! One question: is there a cost per traffic through this VPC Peering connection?
Great video, pls add subtittles for the next ones.
Can you create 2 private subnets for the same vpc connection? If so, how?
Thank you for tutorial i have done exactly same but getting server selection error
how to integrate aws cognito in this same project please help!!
for diffrent database in mongodb, do i have to create a diffrent vpc or i can peer through same private vpc?
What about the data transfer charges?
everything I was searching to become rich. Could you do one with Alibaba services like function compute Sir??
We can't not use mongoose? We can't use free tier while creating atlas in mongodb cloud?
Sir, plz AWS CLOUD DEVELOPER COURSE ONLINE PLZ. HOW TO USE AWS Q&S DISCUSS FORUM FOR NEW DEVELOPERS.
Hello, I've completely setup VPC as instructed in video. But i'm getting error while access URL { "errorType": "MongoServerSelectionError", "errorMessage": "Server selection timed out after 30000 ms", "trace": [ "MongoServerSelectionError: Server selection timed out after 30000 ms", " at Timeout._onTimeout (/var/task/node_modules/mongodb/lib/sdam/topology.js:292:38)", " at listOnTimeout (internal/timers.js:554:17)", " at processTimers (internal/timers.js:497:7)" ] } Can someone help me and suggest me solution. It is perfectly working without VPC.
i am watching in 2024
Request is Failing with status code 504, receiving error " timeout error " but data gets inserted to Database somebody Please help
Request is Failing with status code 504, receiving error " timeout error " but data gets inserted to Database somebody help please