[{"data":1,"prerenderedAt":63},["ShallowReactive",2],{"pattern-apigw-lambda-sls":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":31,"level":32,"meta":33,"patternArch":34,"resources":47,"s3URL":6,"services":6,"stem":56,"testing":57,"videoId":6,"__hash__":62},"patterns\u002Fpatterns\u002Fapigw-lambda-sls.json","Amazon API Gateway REST API to AWS Lambda",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>serverless remove --verbose\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fdmitry-gulin.json",{"text":15},[16],"serverless deploy --verbose","Create an Amazon API Gateway REST API that invokes an AWS Lambda function","json","Serverless Framework",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"apigw-lambda-sls","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-sls","serverless-patterns\u002Fapigw-lambda-sls","serverless.yml",{"headline":27,"text":28,"test":30},"How it works",[29],"This pattern deploys an Amazon API Gateway REST API with a default route and basic CORS configuration. The default route is integrated with an AWS Lambda function written in TypeScript. The function logs the incoming API event (v2) and context object to an Amazon CloudWatch Logs log group and returns basic information about the event to the caller.","","TypeScript","100",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"apigw","API Gateway REST API",{"x":41,"y":37,"service":42,"label":43},80,"lambda","AWS Lambda",{"from":45,"to":46,"label":30},"icon1","icon2",{"headline":48,"bullets":49},"Additional resources",[50,53],{"text":51,"link":52},"Lambda Function Handler","https:\u002F\u002Fdocs.aws.amazon.com\u002Fwhitepapers\u002Flatest\u002Fserverless-architectures-lambda\u002Fthe-handler.html",{"text":54,"link":55},"Serverless Framework documentation","https:\u002F\u002Fwww.serverless.com\u002Fframework\u002Fdocs","patterns\u002Fapigw-lambda-sls",{"headline":58,"text":59},"Testing",[60,61],"1. Once the application is deployed, retrieve the ServiceEndpoint value from CloudFormation Outputs. Either browse to the endpoint in a web browser or call the endpoint from Postman.","2. See the repo for additional testing notes.","TRswE08mxklY5TGW8ajvkOw464aAi5DRCZcoN9vFTAg",1779273332710]