Cannot process an SQS message sent from extended client in a lambda triggered from SQS
Closed this issue · 2 comments
arshadm commented
If an extended client was used to send a message to SNS, and then an SQS queue is used to trigger a lambda on receipt then it's not possible to use the extended client functionality to get the original message (i.e. download the payload).
The code that actually handles an incoming message should be a public function that can be used in other environments where we have an SQS message already which we need to get the full payload.
msailes commented
Hi @arshadm,
The Lambda Powertools project has this functionality.
https://awslabs.github.io/aws-lambda-powertools-java/utilities/sqs_large_message_handling/
Thanks Mark