4 ms·
This is really cool but how do you trigger the execution with SQS? AFAIK, AWS lambda functions can only be triggered by DynamoDB or Kinesis streams, or S3 event
by atonse 12y ago
This is really cool but how do you trigger the execution with SQS? AFAIK, AWS lambda functions can only be triggered by DynamoDB or Kinesis streams, or S3 events. I didn't know you could trigger them off SQS as well.
- alexatkeplar 12y agoIt looks like SQS is only used for the out-of-band return path. The execution is triggered with the AWS SDK's invoke async option: https://github.com/mentum/lambdaws/blob/master/lib/LambdaHelper.js#L154 https://github.com/mentum/lambdaws/blob/master/lib/LambdaHel... Documentation on this option: http://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events-invoke.html http://docs.aws.amazon.com/lambda/latest/dg/walkthrough-cust...
- atonse 12y agoI didn't know about invoke async. Thanks!