Search⌘ K

Process Amazon SNS Notifications with AWS Lambda

Takes 60 mins

AWS Lambda services work to deploy and manage applications without the hassle of managing and maintaining the underlying resources. AWS Lambda functions can also be used to process Amazon Simple Notification Service (Amazon SNS) notifications.

Amazon Simple Notification Service (SNS) is a well-constructed service that processes messages using a publish/subscribe model. Amazon SNS supports Lambda functions as a target for messages sent to a topic. You can subscribe your Lambda function to topics to receive notifications.

image

Amazon SNS calls your function asynchronously with an event that contains a message and metadata.

Lab tasks

  • Create an SNS topic.
  • Create a Lambda function.
  • Configure SNS to trigger your Lambda function.
  • Publish a message in SNS.
  • Verify the message.
  • Clean up.

Architecture diagram

The following is the high-level architecture diagram of how to process SNS notifications using AWS lambda.

image