[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"pattern-apigw-ec2":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":31,"level":32,"meta":33,"patternArch":34,"resources":58,"s3URL":6,"services":6,"stem":63,"testing":64,"videoId":6,"__hash__":67},"patterns\u002Fpatterns\u002Fapigw-ec2.json","Deploy a NGINX server on private EC2 server and proxy it via REST API",null,{"text":8},[9],"Delete the stack: sam delete --stack-name \u003Cstackname>",[11],"content\u002Fcontributors\u002Fshivam-rajawat.json",{"text":13},[14],"sam deploy --guided","Create a REST API which acts as a proxy for a NGINX server hosted on a Amazon Elastic Compute Cloud (Amazon EC2)","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-ec2","serverless-patterns\u002Fapigw-ec2","apigw-ec2","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29,30],"This sample pattern allows users to quickly deploy a REST API, Network Load Balancer and NGINX server on a EC2 machine in their VPC.","The pattern uses Amazon API Gateway with VPC Link to securely connect to the NLB which routes traffic to EC2 instances running NGINX server.","By using this pattern, users can ensure that their private resources are not exposed to the public internet while still allowing secure access through API Gateway.","This pattern can be useful in scenarios where there is a need to integrate with private resources, such as internal databases or applications, while also maintaining a high level of security.","Python","200",{},{"group1":35,"icon1":41,"icon2":45,"icon3":48,"line1":52,"line2":56},{"x":36,"y":37,"w":38,"h":39,"label":40},37,15,60,70,"VPC",{"x":37,"y":42,"service":43,"label":44},50,"apigw","API Gateway",{"x":42,"y":42,"service":46,"label":47},"alb","Network Load Balancer",{"x":49,"y":42,"service":50,"label":51},90,"ec2","EC2",{"from":53,"to":54,"label":55},"icon1","icon2","",{"from":54,"to":57,"label":55},"icon3",{"bullets":59},[60],{"text":61,"link":62},"Tutorial - Build a REST API with API Gateway private integration","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fgetting-started-with-private-integration.html","patterns\u002Fapigw-ec2",{"text":65},[66],"See the GitHub repo for detailed testing instructions.","WrUYHsciU8GGKCHdv7mvoPhxxxIxxhZPGrNCcvGlyKM",1778927704766]