AWS Lambda Event Source Mapping filters from Amazon SQS

SNS → SQS → SQS → AWS Lambda → AWS Lambda

Sample Lambda ESM Filter rules for SQS triggers

Use this code to test out different trigger filters for your Lambda functions. You can use event filtering to control which events Lambda sends to your function for processing. You can use this template to explore and test how to configure event filtering for SQS messages triggering a lambda function.
The SAM template deploys multiple Lambda function, multiple SQS queues and the permissions required to run the application. The template also deploys an SNS topic that helps automate the testing of the pattern.

< 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-esm-sqs-filters-sam

Deploy

sam buildsam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete.

Additional resources

Created by:

Tsvetko Tsenkov

Tsvetko Tsenkov

Tsvetko is a Senior Partner Solutions Architect based out of Atlanta, GA.

Follow on LinkedIn