Subscribing an Amazon SQS Queue to an Amazon SNS Topic
You can subscribe an Amazon SQS queue to an Amazon SNS topic using the AWS Management Console for Amazon SQS. Choose from the list of available topics for the selected queue. Amazon SQS manages the subscription of the queue to the topic and the addition of the necessary permissions.
When a message is published to the topic, Amazon SNS sends an Amazon SQS message to the subscribed queue. For more information about Amazon SNS, see Get Started with Amazon SNS. For more information about Amazon SQS, see Get Started with Amazon SQS.
When you subscribe an Amazon SQS queue to an Amazon SNS topic, Amazon SNS uses HTTPS to forward messages to Amazon SQS.
Subscribe an Amazon SQS Queue to an Amazon SNS Topic Using the AWS Management Console
The following steps assume that you have already created an Amazon SQS queue and an Amazon SNS topic.
To subscribe an Amazon SQS queue to an Amazon SNS topic using the console
Sign in to the AWS Management Console and open the Amazon SQS console at https://console.aws.amazon.com/sqs/.
Choose the queue to which you want to subscribe an Amazon SNS topic.
From the Queue Actions drop-down list, choose Subscribe Queue to SNS Topic .
From the Choose a Topic drop-down list, choose an Amazon SNS topic to which you want to subscribe the queue and then choose Subscribe.
You can also enter the ARN of the Amazon SNS topic into the Topic ARN text box. This is useful when you want to subscribe the queue to an Amazon SNS topic from an AWS account other than the one you used to create your Amazon SQS queue. This is also useful if the Amazon SNS topic is not listed in the Choose a Topic drop-down list.
On the Topic Subscription Result dialog box, choose OK.
You can verify the results of the topic queue subscription by publishing to the topic and viewing the message that the topic sends to the queue. For detailed steps, see Step 5 of Sending Amazon SNS Messages to Amazon SQS Queues in the Amazon Simple Notification Service Developer Guide.