[{"data":1,"prerenderedAt":74},["ShallowReactive",2],{"pattern-lambda-web-vpc-nodejs-sam":3,"pattern-group-lambda-web-vpc-nodejs-sam":6},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":23,"language":29,"level":30,"meta":31,"patternArch":32,"patternGroup":6,"patternGroupLabel":6,"resources":59,"stem":69,"testing":70,"videoId":6,"__hash__":73},"patterns\u002Fpatterns\u002Flambda-web-vpc-nodejs-sam.json","AWS Lambda Web Function with private VPC egress",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>. See the GitHub repo for removing the log groups.",[11],"content\u002Fcontributors\u002Fshekhar-shrinivasan.json",{"text":13},[14,15],"\u003Ccode>sam build\u003C\u002Fcode>","\u003Ccode>sam deploy --guided\u003C\u002Fcode>","Run a Lambda Web Function that reaches private resources in your VPC through a Lambda network connector","json","AWS SAM",{"template":20},{"patternPath":21,"templateFile":22},"lambda-web-vpc\u002Fnodejs\u002Fsam","template.yaml",{"headline":24,"text":25},"How it works",[26,27,28],"This pattern deploys a Node.js HTTP server as an AWS Lambda Web Function with private egress into your VPC. An \u003Ccode>AWS::Serverless::NetworkConnector\u003C\u002Fcode> creates network interfaces in two of your subnets, and the function's revision references the connector's version-qualified ARN, so outbound calls go through your VPC.","The endpoint uses \u003Ccode>IamAuth\u003C\u002Fcode>, so only SigV4-signed requests reach the code. A revision that uses a network connector supports only \u003Ccode>HomeRegion\u003C\u002Fcode> endpoints.","The sample app can call an optional private URL, \u003Ccode>INTERNAL_TARGET_URL\u003C\u002Fcode>, and shows whether it was reachable through the VPC.","Node.js","200",{},{"group1":33,"icon1":39,"icon2":44,"icon3":48,"line1":52,"line2":56},{"x":34,"y":35,"w":36,"h":37,"label":38},64,10,34,84,"Your VPC",{"x":40,"y":41,"service":42,"label":43},12,45,"icon-internet","Client",{"x":45,"y":41,"service":46,"label":47},42,"lambda-web-functions","AWS Lambda Web Functions",{"x":49,"y":41,"service":50,"label":51},81,"ec2","Private resource",{"from":53,"to":54,"label":55},"icon1","icon2","SigV4 (IamAuth)",{"from":54,"to":57,"label":58},"icon3","Network connector",{"bullets":60},[61,63,66],{"text":47,"link":62},"https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fweb-functions.html",{"text":64,"link":65},"Configuring networking for Lambda Web Functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fweb-functions-networking.html",{"text":67,"link":68},"AWS SAM AWS::Serverless::WebFunction resource","https:\u002F\u002Fdocs.aws.amazon.com\u002Fserverless-application-model\u002Flatest\u002Fdeveloperguide\u002Fsam-resource-webfunction.html","patterns\u002Flambda-web-vpc-nodejs-sam",{"text":71},[72],"See the GitHub repo for detailed testing instructions.","NT1o0UglbatTFXPU-Nyaba5R5-sVOKyEbNuN5GesD8o",1794832013743]