I have a small Serverless application which is an API gateway with lambda events, all good.
I now have some requirements that means that I need an SQS resource in front of one of the lambda functions as there is a need for replays.
I would like to be able to get my serverless app to create an api gateway endpoint that forwards on the request to SQS (the queue would then be added as an event for the lambda function. All possible through the AWS console, but I don’t know if this can be done through serverless.
I know through serverless I could have an intermediate lambda function, that has an apigateway event, that then forwards the request to SQS, which in turn calls the proper lambda function, but this is an extra step that I don’t think should be needed.
Can anyone advise on the best way to achieve this?
We are in the process of migrating raw CloudFormation templates to Serverless framework, and we will be having the same need soon enough. I didn’t see another integration for API Gateway than “lambda”. Is there hope that a “awsService” integration would be supported soon enough? Or should we handle that with a plugin?
Thanks in advance for your help!
Had anyone sorted this out?
Did anyone manage to find a solution for this?
I am also trying to put an SQS queue behind an API Gateway endpoint.
I have the same issue, I need make integration api gateway-sqs.
I found plugins like:
However, they are incompatible with versions major than >1.8 of Serverless Framework and im using version major 2.
I know that this is possible by cloudformation in the Serverless Framework, but the configuration is not intuitive for me.
If anyone found a simple way or just a way for this integration api gateway-sqs by Serverless Framework, please help us.