Amazon SQS to Amazon S3 integration using AWS Lambda

Amazon SQS → AWS Lambda → Amazon S3

Integrate an Amazon SQS queue with an Amazon S3 bucket using an AWS Lambda function

This pattern creates an SQS queue, a Lambda function, an S3 bucket along with event source mapping for the Lambda function and appropriate permissions to enable the interfacing between these resources.
The SQS queue is configured as a trigger for the Lambda function. Whenever a message is posted to the SQS queue, the Lambda function is invoked synchronously. This is useful in scenarios where the message requires some pre-processing before storage.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/sqs-lambda-s3-terraform-python

Deploy

See the GitHub repo for detailed deployment instructions.


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

See the GitHub repo for detailed cleanup instructions.

Created by:

Siddharth Das

Siddharth Das

Principal Software Engineer at Fidelity Investments

Follow on LinkedIn