How to create SNS on AWS

To create SNS on AWS

Introduction:

Amazon Simple Notification Service is a notification service provided as part of Amazon Web Services since 2010. It provides a low-cost infrastructure for the mass delivery of messages, predominantly to mobile users. It allows the user to automate the notification through email/HTTP/SQS/Lamda, etc based on events that happen in the account. In this tutorial, we will cover what is SNS on AWS.

Procedure:

Switch AWS console and log into your account. This is the AWS console Then, search SNS on the search bar and click SNS This the SNS dashboard

To create an SNS service, first, create a topic and click the next step Now, select the type and enter the Display Name Then, click on encryption. To make the SNS service secure, you have to enable encryption. Here it is left as a default setting Then, click the delivery retry policy. Here, if anything wants to be changed from the default configuration, uncheck the box and apply the changes Then, click delivery to status logging. Here, I am creating an IAM role. For that, click on create a new service role Change the policy to what you want. Here, I am leaving it as the default name. Then click create Now, click on create a topic. The topic is created. Then, to create subscriptions, click subscriptions and click create subscription

Select the topic name and select the protocol here. I am selecting Email, and I am entering the valid Email address. Now click create subscription The subscription is created. But still, the status is pending. To change the status, you need to switch to your Gmail and there you can receive mail from AWS. Then, open the mail and click confirm subscription Now, switch to AWS console. Refresh the page, and then it is seen that the status is confirmed Now, I want to send messages to the user using the SNS. For that, go to topics and click Linux help. Now, click on publish message Here, enter the subject of the message and enter the message body and click publish message Now, go to mail, and there you can receive the message from the AWS. Open it. With this method, the tutorial on how to create SNS on AWS comes to an end.

FAQ
Q
How many Protocols are available in SNS?
A
HTTP, HTTPS, EMAIL, Email-JSON, Amazon Kinesis Data Firehose, Amazon SQS, AWS Lambda, SMS, and Platform Application endpoint.
Q
How is Amazon SNS different from Amazon MQ?
A
Amazon MQ, Amazon SQS, and Amazon SNS are messaging services that are suitable for anyone from startups to enterprises. If you're using messaging with existing applications, and want to move your message to the cloud quickly and easily, we recommend you consider Amazon MQ.
Q
How can I get started using Amazon SNS?
A
To sign up for Amazon SNS, click the “Sign up for Amazon SNS” button on the Amazon SNS detail page. You must have an Amazon Web Services account to access this service, if you do not already have one, you will be prompted to create one when you begin the Amazon SNS sign-up process.
Q
How is Amazon SNS different from Amazon SQS?
A
Amazon Simple Queue Service (SQS) and Amazon SNS are both messaging services within AWS, which provide different benefits for developers. Amazon SNS allows applications to send time-critical messages to multiple subscribers through a “push” mechanism, eliminating the need to periodically check or “poll” for updates.
Q
What is meant by SNS?
A
Amazon Simple Notification Service is a notification service provided as part of Amazon Web Services since 2010. It provides a low-cost infrastructure for the mass delivery of messages, predominantly to mobile users. An AWS service that allows you to automate the notification through email/HTTP/SQS/Lamda, etc, based on events that happen in the account.