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-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for testing instructions.

Cleanup

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

Created by:

Jose Albino Neto

Jose Albino Neto

AppDev Consultant @ AWS.

Follow on LinkedIn