Chaitanya Vats
Chaitanya Vats

Reputation: 51

Retrieve SQS message content from Lambda

I am sending a message from AWS SQS and want to read the content of the message from a lambda function using boto3.

Can anyone please help and let me know if this is possible?

Upvotes: 2

Views: 6340

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269081

You can associate an Amazon SQS queue as a trigger for an AWS Lambda function.

This means that the Lambda function will be automatically invoked by messages sent to the SQS queue.

The content of the SQS message will be passed to the Lambda function via the event field, together with message metadata.

See: Using AWS Lambda with Amazon SQS

Upvotes: 1

Related Questions