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?