[{"data":1,"prerenderedAt":57},["ShallowReactive",2],{"pattern-apigw-edge-optimized-lambda-sam":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":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":6,"stem":51,"testing":52,"videoId":6,"__hash__":56},"patterns\u002Fpatterns\u002Fapigw-edge-optimized-lambda-sam.json","Amazon API Gateway REST edge-optimized API to AWS Lambda",null,{"text":8},[9],"Delete the stack: \u003Ccode>aws cloudformation delete-stack --stack-name STACK_NAME\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Falice-goumain.json",{"text":13},[14],"sam deploy","Create an edge-optimized API to AWS Lambda.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-rest-edge-lambda","serverless-patterns\u002Fapigw-rest-edge-lambda","apigw-rest-edge-lambda","template.yaml",{"headline":25,"text":26},"How it works",[27,28],"This pattern deploys an Amazon API Gateway REST Edge-Optimized API with a Lambda integration.","The AWS Lambda function is written in Python 3.9. The function returns a small message and a status code to the caller.","Python","200",{},{"icon1":33,"icon2":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},20,50,"apigw","API Gateway REST API",{"x":39,"y":35,"service":40,"label":41},80,"lambda","AWS Lambda",{"from":43,"to":44,"label":45},"icon1","icon2","Edge optimized",{"bullets":47},[48],{"text":49,"link":50},"Edge-optimized API endpoints","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapi-gateway-api-endpoint-types.html#api-gateway-api-endpoint-types-edge-optimized","patterns\u002Fapigw-edge-optimized-lambda-sam",{"text":53},[54,55],"Once the application is deployed, click on the API URL provided as output.","You can also make the request from Postman or from a terminal using the curl command.","ZPgaBR_y-hBHUNTPL5U9_6mJUcJ5s8j3A5-233IM8c0",1778927704800]