[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-apigw-http-lambda-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":30,"language":34,"level":35,"meta":36,"patternArch":37,"resources":51,"s3URL":6,"services":57,"stem":58,"testing":59,"videoId":29,"__hash__":65},"patterns\u002Fpatterns\u002Fapigw-http-lambda-cdk.json","Amazon API Gateway to AWS Lambda",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. In the source folder, from the command line enter:","\u003Ccode>npx cdk destroy --app 'ts-node .'\u003C\u002Fcode>","2. Confirm the removal and wait for the resource deletion to complete.",[14],"content\u002Fcontributors\u002Feduardo-bortoluzzi.json",{"text":16},[17],"cdk deploy","Create an Amazon API Gateway to AWS Lambda HTTP API","json","AWS CDK",{"template":22,"payloads":27},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"apigw-http-api-lambda-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-http-api-lambda-cdk","serverless-patterns\u002Fapigw-http-api-lambda-cdk","app.py",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32},"How it works",[33],"This pattern creates an Amazon API Gateway API and an AWS Lambda function using AWS Cloud Development Kit (AWS CDK) in Python. This template also has a sample CORS configuration. The sample application was developed in Python and it shows some context, event and environment variables properties.","Python","100",{},{"icon1":38,"icon2":43,"line1":47},{"x":39,"y":40,"service":41,"label":42},20,50,"apigw","API Gateway REST API",{"x":44,"y":40,"service":45,"label":46},80,"lambda","AWS Lambda",{"from":48,"to":49,"label":50},"icon1","icon2","Request ANY {proxy+}",{"headline":52,"bullets":53},"Additional resources",[54],{"text":55,"link":56},"CDK Patterns","https:\u002F\u002Fcdkpatterns.com\u002F",{"from":41,"to":45},"patterns\u002Fapigw-http-lambda-cdk",{"headline":60,"text":61},"Testing",[62,63,64],"Run the following command to send an HTTP GET request to the HTTP APIs endpoint. Note that you must edit the {api_endpoint} placeholder with the URL of the deployed HTTP APIs endpoint. This is provided in the deployment outputs.","\u003Ccode>curl -H \"Origin: https:\u002F\u002Fwww.example.com\" \"{api_endpoint}?path=parameter\" --verbose\u003C\u002Fcode>","The output will show a JSON object created by the sample application.","c-TAvm7GYdJIORzzDqSDCCTvyT1rheuq4_abOxuo1C0",1778846881943]