Amazon SQS to AWS Lambda

SQS → AWS Lambda

Create a Lambda function that subscribes to an SQS queue

This pattern deploys deploys a Lambda function and an SQS queue. SQS invokes the Lambda function when new messages are available. The CDK application contains the minimum IAM resources required to run the application.

< 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-terraform-python

Deploy

terraform apply --auto-approveterraform init


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: terraform destroy --auto-approve.

Additional resources

Created by:

Nicolas Diez

Nicolas Diez

AWS Proserve Consultant. I want to use all the competences gained during my experiences to deliver efficient cloud architectures to customers.

Follow on LinkedIn