Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQS event doesn't start the lambda func #198

Open
ivaylopivanov opened this issue Oct 18, 2021 · 0 comments
Open

SQS event doesn't start the lambda func #198

ivaylopivanov opened this issue Oct 18, 2021 · 0 comments

Comments

@ivaylopivanov
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant