Trigger Lambda From AWS SNS

Today we will see how we can trigger lambda from SNS topic.

Note: By this method you can broadcast same message to mutiple lambda and other AWS service.

1: create SNS topic:

AWS SNS main

AWS SNS main details

2: create subscription in your topic, select lambda protocol and select your lambda function:

AWS SNS subscription

3: Now, when any application trigger SNS, then response will broadcast to all the subscription (Lambda).

I :heart: AWS! :smile: Enjoy