[{"data":1,"prerenderedAt":58},["ShallowReactive",2],{"pattern-apigw-rest-regional-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":52,"testing":53,"videoId":6,"__hash__":57},"patterns\u002Fpatterns\u002Fapigw-rest-regional-lambda.json","Amazon API Gateway regional API 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 REST regional API and a Lambda function.","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-regional-lambda","serverless-patterns\u002Fapigw-rest-regional-lambda","apigw-rest-regional-lambda","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29],"This pattern deploys an Amazon API Gateway REST regional 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.","The inline code of the Lambda function is written in the template itself.","Node.js","200",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"apigw","API Gateway",{"x":40,"y":36,"service":41,"label":42},80,"lambda","AWS Lambda",{"from":44,"to":45,"label":46},"icon1","icon2","",{"bullets":48},[49],{"text":50,"link":51},"Set up a regional API in API Gateway","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fcreate-regional-api.html","patterns\u002Fapigw-rest-regional-lambda",{"text":54},[55,56],"Once the application is deployed, retrieve the API URL provided as output and open it in a browser page.","You can also make the request from Postman or from a terminal using the curl command.","zB6WkesBDaWkkhePXGm_m01IAFHnf7UjQR1DVEc9wvw",1778846882678]