[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-apigw-http-sqs-lambda-sls":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":29,"level":30,"meta":31,"patternArch":32,"resources":51,"s3URL":6,"services":6,"stem":62,"testing":63,"videoId":6,"__hash__":68},"patterns\u002Fpatterns\u002Fapigw-http-sqs-lambda-sls.json","Amazon API Gateway to Amazon SQS to AWS Lambda",null,{"text":8},[9,10],"In the source folder, from the command line enter:","\u003Ccode>serverless remove --verbose\u003C\u002Fcode>",[12],"content\u002Fcontributors\u002Fdmitry-gulin.json",{"text":14},[15],"serverless deploy --verbose","Create an HTTP API that routes to SQS then Lambda","json","Serverless Framework",{"template":20},{"projectFolder":21,"repoURL":22,"templateURL":23,"templateFile":24},"apigw-http-api-sqs-lambda-sls","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-http-api-sqs-lambda-sls","serverless-patterns\u002Fapigw-http-api-sqs-lambda-sls","serverless.yml",{"headline":26,"text":27},"How it works",[28],"This pattern creates an Amazon API Gateway HTTP API with a send route that send message to a SQS queue. The Amazon API Gateway HTTP API has basic CORS configured. Upon receiving message, SQS will trigger a Lambda function to process the message. The function will only print the message only. The function written in Python.","TypeScript","200",{},{"icon1":33,"icon2":38,"icon3":41,"line1":45,"line2":49},{"x":34,"y":35,"service":36,"label":37},20,50,"apigw","API Gateway HTTP API",{"x":35,"y":35,"service":39,"label":40},"sqs","SQS",{"x":42,"y":35,"service":43,"label":44},80,"lambda","AWS Lambda",{"from":46,"to":47,"label":48},"icon1","icon2","",{"from":47,"to":50,"label":48},"icon3",{"bullets":52},[53,56,59],{"text":54,"link":55},"Using Lambda with Amazon SQS","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-sqs.html",{"text":57,"link":58},"Amazon API Gateway HTTP Integration subtype reference","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api-develop-integrations-aws-services-reference.html",{"text":60,"link":61},"Serverless Framework documentation","https:\u002F\u002Fwww.serverless.com\u002Fframework\u002Fdocs","patterns\u002Fapigw-http-sqs-lambda-sls",{"headline":64,"text":65},"Testing",[66,67],"Running following cURL command to agaist the HTTP API Endpoint:","\u003Ccode>curl -XPOST https:\u002F\u002F${HTTP_API_ENDPOOINT}\u002Fsend -d'{\"MessageBody\":\"hello\"}'\u003C\u002Fcode>","VaYLXVAI80qAPCaWuVQ5ENwtMgykQfGBPXgFmjOpSkA",1781951702201]