Registering an SQS Queue as a subscriber to an SNS Topic | Scribe

Registering an SQS Queue as a subscriber to an SNS Topic

  • Hafeez Baig |
  • 27 steps |
  • 2 minutes
  • Amazon Web ServicesAmazon Web Services
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> Refer to this guide to learn how to create an Amazon SQS Queue\ <https://scribehow.com/shared/Creating_an_Amazon_SQS_Queue_and_Playing_with_Messages__Afg04cVOSv6XTd2GV86IJA>
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 Queue Service** in the search bar and click on **Simple Queue Service** to view the **Simple Queue Service** Dashboard
information ordinal icon
**What is Simple Queue Service in AWS?** Amazon Simple Queue Service (SQS) is a fully managed message queuing service provided by AWS. It enables you to decouple and scale microservices, distributed systems, and serverless applications by allowing components to communicate asynchronously.
3
**Amazon SQS** wizard will open, select the option **first-standard-queue**
4
On the top right corner click on the **Actions** dropdown button and select the option **Subscribe to Amazon SNS topic**
information ordinal icon
**What does Subscribing to an Amazon SNS mean?** Subscribing to an Amazon SNS (Simple Notification Service) topic allows a subscriber to receive notifications or messages published on that topic. It enables users or applications to receive updates, alerts, or information in real-time based on events or messages published on the topic.
5
**Subscribe to Amazon SNS topic** wizard will open, select **my-first-sns-topic** from the dropdown
6
Scroll to the end of the page and click on the **Save** button
7
Subscribed successfully to topic "**my-first-sns-topic**"
information ordinal icon
Congratulations on successfully subscribing to the Amazon SNS topic! Well done!
8
To view the Topics and Publish a message, click on the **Topics** from the left bar
9
**Topics** wizard will open, select the Name **my-first-sns-topic**
10
On the top right side click on the **Publish message** button
11
**Public message to topic** wizard will open, type "**I Want to see this message on SQS**" in the input text field
12
Scroll to the **Message body** section, select the **Identical payload for all delivery protocols** radio button for **Message structure** and type "**I want to see this message on SQS**" in the Message body
13
Scroll the page and click on the **Publish message** button
14
Message published to topic **my-first-sns-topic** successfully
information ordinal icon
Congratulations on successfully publishing a message to the topic **my-first-sns-topic**! Well done!
15
To view the published message, on the **Amazon SQS Queues** dashboard, click on the Name **first-standard-queue**