serverless-plugins
serverless-plugins copied to clipboard
SQS event doesn't start the lambda func
I'm unable to start a SQS event lambda consumer on event when the serverless is launched offline with useDocker
option. If I don't run the functions in docker containers that handler is triggered successfully. I'm using the example from here (I'm not the author) https://github.com/alexyklu/serverless-offline-lambda-with-sqs. Bumped the deps in the repo to the following:
"dependencies": {
"serverless-domain-manager": "2.6.5",
"serverless-offline": "8.2.0",
"serverless-offline-sqs": "5.0.0"
}
and had to update the runtime to runtime: nodejs12.x
. Launching it like that:
sls offline start --stage local --useDocker
I'm forced to use the docker approach because my handler is a golang function and as far I understand there is no other way to use golang other than using docker. Any workaround to any of the problems?