Subscribing a Lambda function to an Amazon SNS topic
Sign in to the Amazon SNS console
. -
On the navigation panel, choose Topics.
-
On the Topics page, choose a topic.
-
In the Subscriptions section, choose Create subscription.
-
On the Create subscription page, in the Details section, do the following:
-
Verify the chosen Topic ARN.
-
For Protocol choose AWS Lambda.
-
For Endpoint enter the ARN of a function.
-
Choose Create subscription.
-
When a message is published to an SNS topic that has a Lambda function subscribed to it, the Lambda function is invoked with the payload of the published message. For information about how to use AWS Lambda with Amazon SNS, including a tutorial, see Using AWS Lambda with Amazon SNS.