Amazon Simple Queue Service
Developer Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Tutorial: Subscribing an Amazon SQS Queue to an Amazon SNS Topic

You can subscribe one or more Amazon SQS queues to an Amazon SNS topic from a list of topics available for the selected queue. Amazon SQS manages the subscription and any necessary permissions. When you publish a message to a topic, Amazon SNS sends the message to every subscribed queue. For more information about Amazon SNS, see What is Amazon Simple Notification Service? in the Amazon Simple Notification Service Developer Guide.


  • Amazon SNS isn't currently compatible with FIFO queues.

  • For information about using Amazon SNS with encrypted Amazon SQS queues, see Enable Compatibility between AWS Services and Encrypted Queues.

  • When you subscribe an Amazon SQS queue to an Amazon SNS topic, Amazon SNS uses HTTPS to forward messages to Amazon SQS.

In this tutorial you learn how to subscribe an existing Amazon SQS queue to an existing Amazon SNS topic.

AWS Management Console

  1. Sign in to the Amazon SQS console.

  2. From the list of queues, choose the queue (or queues) to which you want to subscribe an Amazon SNS topic.

  3. From Queue Actions, select Subscribe Queue to SNS Topic (or Subscribe Queues to SNS Topic).

    The Subscribe to a Topic dialog box is displayed.

  4. From the Choose a Topic drop-down list, select an Amazon SNS topic to which you want to subscribe your queue (or queues), select the Topic Region (optional), and then choose Subscribe.


    Typing a different Topic ARN is useful when you want to subscribe a 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 isn't listed in the Choose a Topic drop-down list.

    The Topic Subscription Result dialog box is displayed.

  5. Review the list of Amazon SQS queues that are subscribed to the Amazon SNS topic and choose OK.

    The queue is subscribed to the topic.


    If your Amazon SQS queue and Amazon SNS topic are in different AWS accounts, the owner of the topic must first confirm the subscription. For more information, see Confirm the Subscription in the Amazon Simple Notification Service Developer Guide.

    To list your subscriptions, unsubscribe from topics, and delete topics, use the Amazon SNS console. For more information, see Clean Up.

    To verify the result of the subscription, you can publish to the topic and then view the message that the topic sends to the queue. For more information, see Sending Amazon SNS Messages to Amazon SQS Queues in the Amazon Simple Notification Service Developer Guide.

On this page: