Serverless-offline: SQS Trigger

Created on 1 Mar 2019  路  3Comments  路  Source: dherault/serverless-offline

Is it possible to trigger my function with SQS?
Or only HTTP.

question

Most helpful comment

I imagined something like this: https://github.com/mj1618/serverless-offline-sns

All 3 comments

Only HTTP for now :) I'm not sure how to implement it using SQS since it is an AWS service by itself. How would you call a lambda function in SQS ?

I imagined something like this: https://github.com/mj1618/serverless-offline-sns

Would it not be possible to send a simulated SQS event in JSON over HTTP and have serverless-offline pass them unchanged to the function instead of formatting them as API Gateway requests? Maybe via a custom header, or based on the function's events configuration in serverless.yml?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

balintpeak picture balintpeak  路  4Comments

stunningpixels picture stunningpixels  路  3Comments

MEGApixel23 picture MEGApixel23  路  4Comments

adambiggs picture adambiggs  路  4Comments

jormaechea picture jormaechea  路  4Comments