Creating an SNS Topic and Registering a Lambda to Subscribe | Scribe

    Creating an SNS Topic and Registering a Lambda to Subscribe

    • Hafeez Baig |
    • 39 steps |
    • 4 minutes
    information ordinal icon

    Refer to the following guide to learn how to use IAM in the cloud\ <https://scribehow.com/shared/Creating_an_IAM_User_and_User_Group_in_AWS_Management_Console__hWNiiXlcRJKFqYZZEJD-cg>

    1

    Sign in to **AWS Management Console** as an **IAM User** **Pre-requisite** - Ensure you have selected the AWS region closest to your location\ For this guide, we will be using us-east-2 (Ohio) as a preferred choice

    2

    Type **Simple Notification Service** in the search bar and click on **Simple Notification Service** to view the **Simple Notification Service** Dashboard

    information ordinal icon

    **What is Simple Notification Service in AWS?** Amazon Simple Notification Service (SNS) is a fully managed messaging service provided by AWS that enables you to build distributed applications by coordinating the delivery of messages to subscribing endpoints or clients. It allows you to send messages or notifications to a variety of endpoint types, including HTTP/S, email, SMS, SQS queues, Lambda functions, and more.

    3

    **Amazon SNS** page will open, click on the **Topics** from the left bar

    4

    **Topics** dashboard will open, on the top right corner click on the **Create topics** button

    5

    **Create topic** wizard will open, scroll to the **Details** section and select the option **Standard**

    6

    Scroll to the Name section and give Name as "**my-first-sns-topic**"

    7

    Scroll to the **Encryption** section

    information ordinal icon

    **What is Encryption in Amazon SNS?** Encryption in Amazon SNS refers to the process of securing messages sent through the service by encrypting their contents. This ensures that sensitive data remains confidential and protected from unauthorized access during transmission.

    8

    Scroll to the **Access policy** section, select the **Basic** radio button

    information ordinal icon

    **What is Access policy in Amazon SNS?** An access policy in Amazon SNS defines the permissions and access control rules for managing topics and sending messages. It specifies who can perform actions such as publishing messages to a topic, subscribing to a topic, or modifying topic attributes.

    9

    Scroll to the **Data protection policy** section and select the **Basic** radio button

    information ordinal icon

    **What is Data protection policy in Amazon SNS?** In Amazon SNS, a data protection policy refers to the set of rules and guidelines designed to safeguard the privacy and integrity of sensitive data transmitted through SNS topics. This policy typically outlines measures for encryption, access control, and data handling practices to ensure compliance with data protection regulations and standards.

    10

    Scroll the page and click on **Create topic**

    11

    Topic my-first-sns-topic created successfully

    information ordinal icon

    Congratulations on successfully creating a topic in Amazon SNS. Well done!

    12

    To create a **Subscription**, on **my-fist-sns-topic** wizard scroll the page and click on **Subscriptions** tab

    13

    Click on the **Create subscription** button on the right side

    information ordinal icon

    **What is Subscription in Amazon SNS?** A subscription in Amazon SNS refers to the act of registering an endpoint (such as an email address, HTTP/S URL, AWS Lambda function, or mobile device) to receive messages published to a specific topic.