[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-apigw-domain-edge-lambda":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":30,"level":31,"meta":32,"patternArch":33,"resources":47,"s3URL":6,"services":6,"stem":58,"testing":59,"videoId":6,"__hash__":65},"patterns\u002Fpatterns\u002Fapigw-domain-edge-lambda.json","Regional Amazon API Gateway with edge-optimized domain name to AWS Lambda",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Falice-goumain.json",{"text":13},[14],"sam deploy","Create a regional API with edge-optimized domain name and a Lambda integration.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-domain-edge-lambda","serverless-patterns\u002Fapigw-domain-edge-lambda","apigw-domain-edge-lambda","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29],"This pattern deploys an Amazon API Gateway REST regional API with an edge-optimized domain name and a Lambda integration.","You will need: a route53 hosted zone, an ACM Certificate in the us-east-1 region.","The domain name choosen needs to match or be a subdomain of the domain name on the certificate.","Python","200",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"apigw","API Gateway REST API",{"x":40,"y":36,"service":41,"label":42},80,"lambda","AWS Lambda",{"from":44,"to":45,"label":46},"icon1","icon2","Edge optimized",{"bullets":48},[49,52,55],{"text":50,"link":51},"Creating a public hosted zone","https:\u002F\u002Fdocs.aws.amazon.com\u002FRoute53\u002Flatest\u002FDeveloperGuide\u002FCreatingHostedZone.html",{"text":53,"link":54},"Routing traffic to an Amazon API Gateway API by using your domain name","https:\u002F\u002Fdocs.aws.amazon.com\u002FRoute53\u002Flatest\u002FDeveloperGuide\u002Frouting-to-api-gateway.html",{"text":56,"link":57},"Creating an edge-optimized custom domain name","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhow-to-edge-optimized-custom-domain-name.html","patterns\u002Fapigw-domain-edge-lambda",{"text":60},[61,62,63,64],"1. Enter the ARN of the certificate (which is in us-east-1) and the custom domain name in the parameters of the template.","Deploy the template","2. Create a new record in your Hosted zone in route53 with an alias to the API Edge-Optimized endpoint","3. Paste the custom domain name into a browser to make requests","_3lXPrSseBIGaHDeZ2vy5wwUxFTVW1-bSeBLdaqRKxg",1778846881720]