How to Create a Highly Secure MongoDB and Lambda Connection?

Поделиться
HTML-код
  • Опубликовано: 24 авг 2024
  • ★ 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/...
    #AWS #Mongodb #Mongodbatlas #Vpcpeering #Enlear
    ★Resources
    Github - github.com/mjz...
    Serverless Config Credentials - www.serverless...
    Serverless Create NodeJS Service - www.serverless...
    VPC Configuration www.serverless...
    💖 Become a Patron: Show Support 💖
    / cloudtutorials

Комментарии • 46

  • @jonathanbecerra4819
    @jonathanbecerra4819 3 года назад +3

    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
    @alicecommits Год назад +4

    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
    @bytive 2 года назад +2

    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
    @rahatsshowcase8614 7 месяцев назад

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

  • @bimsaragunarathna2900
    @bimsaragunarathna2900 3 года назад +1

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

  • @traveling_soul_bliss
    @traveling_soul_bliss Год назад

    Thank you so much❤

  • @learningwithtabrez
    @learningwithtabrez Год назад

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

  • @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.

  • @ashanfer
    @ashanfer 3 года назад

    Awesome video with a clear explanation !!

  • @mathspro5931
    @mathspro5931 3 года назад

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

  • @roshanjangid9112
    @roshanjangid9112 3 года назад

    Really great video man! Thanks

  • @prabhudevbm6628
    @prabhudevbm6628 Год назад

    thanks

  • @Travellife8877
    @Travellife8877 3 года назад

    very smooth and clear...

  • @ShoaibAkhtar1979
    @ShoaibAkhtar1979 3 года назад

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

  • @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?

  • @prathamjaiswal3243
    @prathamjaiswal3243 2 года назад

    Nicely explained
    Thanks

  • @florianbischoff
    @florianbischoff Год назад

    Great content. Keep it up!

  • @LahiruDhananjaya
    @LahiruDhananjaya 3 года назад

    Awesome . Keep up the good work !

  • @charvidesilva9110
    @charvidesilva9110 3 года назад

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

  • @Toralero
    @Toralero 2 года назад +2

    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

  • @akashjohirul9409
    @akashjohirul9409 Год назад

    Great Video, Thanks

  • @andresm9051
    @andresm9051 2 года назад +1

    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.

  • @diveshkswn
    @diveshkswn 3 года назад

    Another Great content :)

  • @VISHNUKUMAR-bh8uj
    @VISHNUKUMAR-bh8uj 3 года назад

    Great Video

  • @shrijaykesarwani6773
    @shrijaykesarwani6773 Год назад

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

  • @vinicius_sa
    @vinicius_sa Год назад

    Great video, pls add subtittles for the next ones.

  • @sachintiwari5916
    @sachintiwari5916 Год назад

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

  • @rajatm
    @rajatm 3 года назад

    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

  • @SRGXIO
    @SRGXIO 10 месяцев назад

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

  • @sandroaugustodeoliveira4240
    @sandroaugustodeoliveira4240 Год назад

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

  • @eleah2665
    @eleah2665 3 года назад

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

  • @davidgamon1912
    @davidgamon1912 3 года назад

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

  • @lequocduan
    @lequocduan 3 года назад

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

  • @jps8959
    @jps8959 3 года назад

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

  • @mikkelvivelsted
    @mikkelvivelsted 3 года назад

    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.

  • @jpmamuric679
    @jpmamuric679 3 года назад

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

  • @akshaykulkarni2970
    @akshaykulkarni2970 3 года назад

    What about the data transfer charges?

  • @satya4866
    @satya4866 3 года назад

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

  • @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 3 месяца назад

    i am watching in 2024

  • @kamalCode
    @kamalCode 3 года назад

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

  • @udbhavvikramsingh3449
    @udbhavvikramsingh3449 Год назад +1

    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