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

  • @jonathanbecerra4819
    @jonathanbecerra48193 жыл бұрын

    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

    @EnlearAcademy

    3 жыл бұрын

    Thanks for the nice comment Jonathan. Cheers!

  • @alicecommits
    @alicecommits11 ай бұрын

    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.

  • @bytive
    @bytive2 жыл бұрын

    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

  • @rahatsshowcase8614
    @rahatsshowcase86146 ай бұрын

    i just came here for establishment of peering connection and was amazed to see how easy it is! Thanks for the content! Liked

  • @ashanfer
    @ashanfer3 жыл бұрын

    Awesome video with a clear explanation !!

  • @roshanjangid9112
    @roshanjangid91123 жыл бұрын

    Really great video man! Thanks

  • @Travellife8877
    @Travellife88773 жыл бұрын

    very smooth and clear...

  • @LahiruDhananjaya
    @LahiruDhananjaya3 жыл бұрын

    Awesome . Keep up the good work !

  • @ShoaibAkhtar1979
    @ShoaibAkhtar19793 жыл бұрын

    Awesome video and very clear explanation. Keep up the good work.

  • @akashjohirul9409
    @akashjohirul9409 Жыл бұрын

    Great Video, Thanks

  • @monkwhocode
    @monkwhocode Жыл бұрын

    Thank you so much❤

  • @mathspro5931
    @mathspro59313 жыл бұрын

    Very fantastic content , which I was looking for. Thanks a lot

  • @bimsaragunarathna2900
    @bimsaragunarathna29003 жыл бұрын

    Just thought of using MongoDB instead of Dynamodb. Thank u❤️

  • @prathamjaiswal3243
    @prathamjaiswal32432 жыл бұрын

    Nicely explained Thanks

  • @florianbischoff
    @florianbischoff Жыл бұрын

    Great content. Keep it up!

  • @learningwithtabrez
    @learningwithtabrez Жыл бұрын

    It's really help me a lot..thanks for such a valuable demo..

  • @diveshkswn
    @diveshkswn3 жыл бұрын

    Another Great content :)

  • @VISHNUKUMAR-bh8uj
    @VISHNUKUMAR-bh8uj3 жыл бұрын

    Great Video

  • @charvidesilva9110
    @charvidesilva91103 жыл бұрын

    Thank you for this! Can you please do more tutorials on MongoDB Atlas?

  • @prabhudevbm6628
    @prabhudevbm6628 Жыл бұрын

    thanks

  • @ManibhaJain
    @ManibhaJain Жыл бұрын

    Hi, The video is great. I was searching for something like this to connect to mongodb atlas.I am gonna try it now.

  • @rajatm
    @rajatm3 жыл бұрын

    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

  • @andresm9051
    @andresm90512 жыл бұрын

    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.

  • @Toralero
    @Toralero2 жыл бұрын

    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

  • @lequocduan
    @lequocduan3 жыл бұрын

    Great! and which VS Code's theme are you using? I like it a lot.

  • @prasannasundarajan837
    @prasannasundarajan837 Жыл бұрын

    Great Video ! Awesome Content ! Can you pls create a video for connecting MongoDB Atlas with AWS Glue using AWS Glue's MongoDB Atlas connector?

  • @jps8959
    @jps89593 жыл бұрын

    Do you need to create any inbound rules for the security group?

  • @mikkelvivelsted
    @mikkelvivelsted2 жыл бұрын

    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.

  • @eleah2665
    @eleah26653 жыл бұрын

    Hello. I recently discovered you. Can you do a series on CDK? Thanks.

  • @sandroaugustodeoliveira4240
    @sandroaugustodeoliveira4240 Жыл бұрын

    Amazing video thanks! One question: is there a cost per traffic through this VPC Peering connection?

  • @vinicius_sa
    @vinicius_sa Жыл бұрын

    Great video, pls add subtittles for the next ones.

  • @jpmamuric679
    @jpmamuric6793 жыл бұрын

    Can you create 2 private subnets for the same vpc connection? If so, how?

  • @shrijaykesarwani6773
    @shrijaykesarwani6773 Жыл бұрын

    Thank you for tutorial i have done exactly same but getting server selection error

  • @davidgamon1912
    @davidgamon19122 жыл бұрын

    how to integrate aws cognito in this same project please help!!

  • @sachintiwari5916
    @sachintiwari591611 ай бұрын

    for diffrent database in mongodb, do i have to create a diffrent vpc or i can peer through same private vpc?

  • @akshaykulkarni2970
    @akshaykulkarni29703 жыл бұрын

    What about the data transfer charges?

  • @Human_System_
    @Human_System_8 ай бұрын

    everything I was searching to become rich. Could you do one with Alibaba services like function compute Sir??

  • @satya4866
    @satya48663 жыл бұрын

    We can't not use mongoose? We can't use free tier while creating atlas in mongodb cloud?

  • @kamalCode
    @kamalCode3 жыл бұрын

    Sir, plz AWS CLOUD DEVELOPER COURSE ONLINE PLZ. HOW TO USE AWS Q&S DISCUSS FORUM FOR NEW DEVELOPERS.

  • @ankitsharma2560
    @ankitsharma2560 Жыл бұрын

    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.

  • @vishal_sharma_rha
    @vishal_sharma_rhaАй бұрын

    i am watching in 2024

  • @udbhavvikramsingh3449
    @udbhavvikramsingh3449 Жыл бұрын

    Request is Failing with status code 504, receiving error " timeout error " but data gets inserted to Database somebody Please help

  • @udbhavvikramsingh3449
    @udbhavvikramsingh3449 Жыл бұрын

    Request is Failing with status code 504, receiving error " timeout error " but data gets inserted to Database somebody help please