[{"data":1,"prerenderedAt":62},["ShallowReactive",2],{"pattern-apigw-lambda-cdk":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":30,"level":31,"meta":32,"patternArch":33,"resources":47,"s3URL":6,"services":6,"stem":53,"testing":54,"videoId":6,"__hash__":61},"patterns\u002Fpatterns\u002Fapigw-lambda-cdk.json","Amazon API Gateway to AWS Lambda",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>npm run destroy\u003C\u002Fcode>","2. Confirm the removal and wait for the resource deletion to complete.",[13],"content\u002Fcontributors\u002Fibrahim-cesar.json",{"text":15},[16],"npm run deploy","Create an Amazon API Gateway to AWS Lambda REST API","json","AWS CDK",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"apigw-lambda-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-cdk","serverless-patterns\u002Fapigw-lambda-cdk","src\u002Findex.ts",{"headline":27,"text":28},"How it works",[29],"This pattern in CDK offers a boilerplate to generate an Amazon API Gateway REST API endpoint with a a greedy proxy ('{proxy+}') and 'ANY' method from the specified path, meaning it will accept by default any method and any path. The Lambda function provided in TypeScript only returns the path.","TypeScript","100",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"apigw","API Gateway REST API",{"x":40,"y":36,"service":41,"label":42},80,"lambda","AWS Lambda",{"from":44,"to":45,"label":46},"icon1","icon2","Request ANY {proxy+}",{"headline":48,"bullets":49},"Additional resources",[50],{"text":51,"link":52},"CDK Patterns","https:\u002F\u002Fcdkpatterns.com\u002F","patterns\u002Fapigw-lambda-cdk",{"headline":55,"text":56},"Testing",[57,58,59,60],"After deployment, the output shows the API Gateway URL with the Lambda Integration, for example: \u003Ccode>ServerlessLandApi.ServerlessLandEndpointC36EEEC4 = https:\u002F\u002F\u003Crandom-id>.execute-api.us-east-1.amazonaws.com\u002Fprod\u002F\u003C\u002Fcode>.","Accessing the URL in a browser, you see:","\u003Ccode> Hello, your path is: \"\u002F\"\u003Ccode>.","This page logs any path you type after \"\u002F\". You can use this as a starting point as a general purpose endpoint for various types of applications.","kl4M8lxaNty_fBHnlltOAr8Y3tJJeP57ofIc0tsbJYs",1780050904843]