[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-apigw-http-lambda-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":31,"level":32,"meta":33,"patternArch":34,"resources":48,"s3URL":6,"services":6,"stem":60,"testing":61,"videoId":6,"__hash__":65},"patterns\u002Fpatterns\u002Fapigw-http-lambda-terraform.json","Amazon API Gateway HTTP API to AWS Lambda",null,{"headline":8,"text":9},"Cleanup",[10],"terraform destroy",[12],"content\u002Fcontributors\u002Fcarlos-bauer.json",{"text":14},[15],"terraform apply","Creates an Amazon API Gateway HTTP API and an AWS Lambda function","json","Terraform",{"template":20},{"projectFolder":21,"repoURL":22,"templateURL":23,"templateFile":24},"apigw-http-api-lambda-terraform","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-http-api-lambda-terraform","serverless-patterns\u002Fapigw-http-api-lambda-terraform","main.tf",{"headline":26,"text":27},"How it works",[28,29,30],"This pattern deploys an Amazon API Gateway HTTP API with a default route and basic CORS configuration.","The default route is integrated with an AWS Lambda function written in Python.","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.","Python","100",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"apigw","API Gateway HTTP API",{"x":41,"y":37,"service":42,"label":43},80,"lambda","AWS Lambda",{"from":45,"to":46,"label":47},"icon1","icon2","",{"headline":49,"bullets":50},"Additional resources",[51,54,57],{"text":52,"link":53},"Working with HTTP APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api.html",{"text":55,"link":56},"Working with AWS Lambda proxy integrations for HTTP APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api-develop-integrations-lambda.html",{"text":58,"link":59},"AWS Lambda - the Basics","https:\u002F\u002Fdocs.aws.amazon.com\u002Fwhitepapers\u002Flatest\u002Fserverless-architectures-lambda\u002Faws-lambdathe-basics.html","patterns\u002Fapigw-http-lambda-terraform",{"headline":62,"text":63},"Testing",[64],"See the GitHub repo for detailed testing instructions.","C1sSOMnGOF1W3iqUw6YBpFnWnTRVZwL_I_Pl69bRGag",1782124504222]