AWS Lambda to Amazon SQS

AWS Lambda → SQS

Create a Lambda function that publishes to an SQS queue

This pattern deploys a SQS Queue and a Lambda function that once triggered will send a message to the Sqs Queue. 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/lambda-sqs-rust-sam

Deploy

sam deploy --guided


Testing

See detailed testing instructions in the repo.

Cleanup

1. Delete the stack: sam delete --stack-name STACK_NAME.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Created by:

Daniele Frasca

Daniele Frasca

I am Daniele Frasca serverless enthusiast. I build and architect serverless applications at scale.