Overview
Lab details
- This lab walks you through creating an SNS Topic and subscribing to email notifications.
- Duration: 15 Minutes
- AWS Region: US East (N. Virginia) us-east-1
Introduction
AWS SNS (Simple Notification Service) is a fully managed messaging service provided by Amazon Web Services (AWS). It enables developers to send push notifications, SMS messages, and email messages to subscribers. SNS follows a publish-subscribe messaging pattern, where messages are sent to topics and then delivered to subscribers who have expressed interest in receiving messages from those topics. Key features of AWS SNS include:- Topic-based messaging: SNS allows you to create topics, which act as communication channels for sending messages. Publishers send messages to topics, and subscribers receive messages from topics they have subscribed to.
- Multiple message protocols: SNS supports multiple message protocols, including HTTP/HTTPS, email, SMS, SQS (Simple Queue Service), Lambda functions, mobile push notifications, and more. This flexibility allows you to choose the most appropriate protocol for delivering messages to your subscribers.
Architecture diagram

Task details
- Sign into AWS Management Console.
- Create an SNS Topic.
- Subscribe to email notifications while creating SNS Topic.
- Validation of the lab
Launching the lab environment
- To launch the lab environment, Click on the Launch lab button.
- Please wait until the cloud environment is provisioned. It will take less than a minute to provision.
- Once the Lab is started, you will be provided with IAM user name, Password, Access Key, and Secret Access Key.
You can only start one lab at any given time
Lab guide
Lab steps
Task 1: Sign in to AWS Management Console
- Click on the Open console button, and you will get redirected to AWS Console in a new browser tab.
- On the AWS sign-in page,
- Leave the Account ID as default. Never edit/remove the 12 digit Account ID present in the AWS Console. otherwise, you cannot proceed with the lab.
- Now copy your User Name and Password in the Lab Console to the IAM Username and Password in AWS Console and click on the Sign in button
- Once Signed In to the AWS Management Console, Make the default AWS Region as US East (N. Virginia) us-east-1.
- Select Maybe later in New AWS Console Home page pop-up.

Task 2: Creating SNS Topic
- Make sure you are in the US East (N. Virginia) us-east-1
- Navigate to the Services menu and click on Simple Notification Service (SNS) under the Application Integration section.
- Enter Topic name and click on Next Button.

- Under Details
- Type: Select Standard
- Name: Enter mysnstopic
- Display name: mysnsnotification

- Leave other options as default and click on Create topic button.
- An SNS topic will be created.

- Note : Ignore below error message.
#### Task 3: Subscribing to the Topic
- Once the SNS Topic is created, click on your topic.
- Click on Create subscription button.

- Under Details
- Protocol: Select Email
- Endpoint: Enter your <Mail Id>
- Note: Make sure you give a valid mail address as you will receive an SNS notification to this address.

- Click on Create Subscription.

- You will receive an email in your mailbox from SNS, if its not in the inbox, please check in Spam folder.

- Click on Confirm subscription.
- Your email address is now subscribed to SNS Topic mysnstopic__.

- You can unsubscribe to the SNS Topic at any time.
- We can use this to subscribe to S3 events, CloudWatch events and more.
Do you know?
AWS SNS simplifies the task of sending notifications to a large number of subscribers across multiple platforms and protocols, providing a flexible and scalable solution for building event-driven architectures and real-time messaging systems.
Task 4: Validation Test
- Once the lab steps are completed, please click on the Check my work button on the Right side panel.
- This will validate the resources in the AWS account and displays whether you have completed this lab successfully or not.
-
Sample output :

Completion and conclusion
- You have successfully created an SNS Topic.
- You have successfully subscribed to the topic and received an email notification.
End lab
- Sign out of the AWS Account.
- You have successfully completed the lab.
- Once you have completed the steps, click on End lab button in the IP Lab Portal.
What gets checked
When you press Check my work, the platform verifies each of these:- Create an Amazon SNS Topic — Check If SNS Topic created or not