AWS Lambda to Amazon SQS

AWS Lambda → SQS

Create a Lambda function that publishes to an SQS queue

The SAM template deploys a Lambda function, an SQS queue and the IAM permissions required to run the application. The Lambda function publishes a message to the SQS queue when invoked.

< 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/lambda-sqs-terraform

Deploy

terraform initterraform apply


Testing

See the README in the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: terraform destroy.
2. Confirm the stack has been deleted: terraform show

Created by:

Stephen Monaghan

Solutions Architect, AWS

Follow on LinkedIn