[{"data":1,"prerenderedAt":76},["ShallowReactive",2],{"pattern-terraform-apigw-http-api-lambda":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"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":71,"testing":72,"videoId":6,"__hash__":75},"patterns\u002Fpatterns\u002Fterraform-apigw-http-api-lambda.json","Amazon API Gateway (HTTP) to AWS Lambda",null,{"text":8},[9],"terraform destroy",[11],"content\u002Fcontributors\u002Fanton-babenko.json",{"text":13},[14,15],"terraform init","terraform apply --auto-approve","This pattern creates an Amazon API Gateway (HTTP) and an AWS Lambda function.","json","Terraform (with modules)",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fterraform-apigw-http-lambda","serverless-patterns\u002Fterraform-apigw-http-api-lambda","terraform-apigw-http-lambda","main.tf",{"headline":26,"text":27},"How it works",[28,29,30],"This pattern deploys an Amazon API Gateway (HTTP) 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","200",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"apigw","API Gateway",{"x":41,"y":37,"service":42,"label":43},80,"lambda","AWS Lambda",{"from":45,"to":46,"label":47},"icon1","icon2","",{"bullets":49},[50,53,56,59,62,65,68],{"text":51,"link":52},"Terraform AWS Lambda module","https:\u002F\u002Fgithub.com\u002Fterraform-aws-modules\u002Fterraform-aws-lambda",{"text":54,"link":55},"Terraform AWS Lambda examples","https:\u002F\u002Fgithub.com\u002Fterraform-aws-modules\u002Fterraform-aws-lambda\u002Ftree\u002Fmaster\u002Fexamples",{"text":57,"link":58},"Terraform Amazon API Gateway v2 (HTTP\u002FWebsocket) module","https:\u002F\u002Fgithub.com\u002Fterraform-aws-modules\u002Fterraform-aws-apigateway-v2",{"text":60,"link":61},"Terraform Amazon API Gateway v2 (HTTP\u002FWebsocket) examples","https:\u002F\u002Fgithub.com\u002Fterraform-aws-modules\u002Fterraform-aws-apigateway-v2\u002Ftree\u002Fmaster\u002Fexamples",{"text":63,"link":64},"Working with HTTP APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api.html",{"text":66,"link":67},"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":69,"link":70},"AWS Lambda Developer Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwelcome.html","patterns\u002Fterraform-apigw-http-api-lambda",{"text":73},[74],"See the GitHub repo for detailed testing instructions.","B-H6G-EBCXqoAtR1EeuFARvdCxSsA__4neypr5mj-EQ",1778927711920]