Search code examples
amazon-web-servicesamazon-s3aws-lambdaamazon-sqs

Multiple messages from Lambda to SQS using Destination trigger


Can I write multiple messages from Lambda to SQS using destination triggers?

My use case is, I have to read an s3 file and add rows to SQS queue which will be further processed by another lambda function. S3 file is huge so I can't process everything using a single lambda function.


Solution

  • You can't directly write multiple messages from single lambda to SQS using destination functions. I ended up writing the messages from lambda-1 to SQS and using another lambda-2 to do row level processing