AWS Lambda to Amazon SNS with filters to AWS Lambda

AWS Lambda → AWS SNS → AWS Lambda

Creates a Lambda function that sends a message to a SNS that contains a filter. One function gets trigger always but the other depends on the filter.

This sample project demonstrates how to use create a SNS with filters and trigger different functions depending on the filtering.

< 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-sns-filters-lambda

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk delete.

Created by:

Marcia Villalba

Marcia Villalba

Marcia hosts the FooBar Serverless YouTube channel where she publishes content every week related to serverless and the cloud. She has been designing and developing software professionally for 15 years and worked in all the different stages of building scaling and performant software.

Follow on LinkedIn