AWS Lambda to Amazon SNS to AWS Lambda

AWS Lambda → AWS SNS → AWS Lambda

Creates a Lambda function that sends a message to a SNS and then another function gets triggered when there is a new notification in the topic.

This sample project demonstrates how to create a Lambda function that sends a message to an SNS topic using AWS SDK. Then another function gets trigger when a message is in the topic.

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

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk delete.

Additional resources

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