[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-apigw-http-api-lambda-cdk-ts":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":32,"level":33,"meta":34,"patternArch":35,"resources":49,"s3URL":6,"services":6,"stem":60,"testing":61,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Fapigw-http-api-lambda-cdk-ts.json","Amazon API Gateway HTTP API with AWS Lambda integration",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fphilippe-wanner.json",{"text":13},[14],"Deploy the stack: \u003Ccode>cdk deploy\u003C\u002Fcode> or \u003Ccode>npm run deploy\u003C\u002Fcode>","This pattern creates an Amazon API Gateway HTTP API and a sample Lambda function returning a simple 'Hello World' response","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-http-api-lambda-ts-cdk","serverless-patterns\u002Fapigw-http-api-lambda-ts-cdk","apigw-http-api-lambda-ts-cdk","lib\u002Fhttpapi-lambda-stack.ts",{"headline":25,"text":26},"How it works",[27,28,29,30,31],"This pattern creates an Amazon API Gateway HTTP API (v2) that integrates with an AWS Lambda function by using AWS Cloud Development Kit (AWS CDK).","The solution works as follow:","1. CDK will provision an Amazon API Gateway HTTP API and a sample Lambda function.","2. It will integrate the Lambda function to the  HTTP API using the route '\u002F'","3. Finally, it will return the HTTP API URL in the console. (So you can test the deployment)","Node.js","200",{},{"icon1":36,"icon2":41,"line1":45},{"x":37,"y":38,"service":39,"label":40},30,50,"apigw","Amazon API Gateway HTTP API",{"x":42,"y":38,"service":43,"label":44},80,"lambda","AWS Lambda",{"from":46,"to":47,"label":48},"icon1","icon2","",{"bullets":50},[51,54,57],{"text":52,"link":53},"Working with the AWS CDK in TypeScript","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fv2\u002Fguide\u002Fwork-with-cdk-typescript.html",{"text":55,"link":56},"Working with HTTP APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api.html",{"text":58,"link":59},"Building Lambda functions with TypeScript","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-typescript.html","patterns\u002Fapigw-http-api-lambda-cdk-ts",{"text":62},[63],"See the GitHub repo for detailed testing instructions.","r5wZCcYf7yQAtNUmak7ePyZ-OH8sagnhpX-vgQesDAI",1778927704843]