Creating an Amazon SQS queue (console) - Amazon Simple Queue Service

Creating an Amazon SQS queue (console)

High throughput for Amazon SQS FIFO queues is in preview release and is subject to change. For more information, see Preview: High throughput for FIFO queues.

You can use the Amazon SQS console to create standard queues and FIFO queues. The console provides default values for all settings except for the queue name.

To create an Amazon SQS queue (console)

  1. Open the Amazon SQS console at https://console.aws.amazon.com/sqs/.

  2. Choose Create queue.

  3. For Type, the Standard queue type is set by default. To create a FIFO queue, choose FIFO.

    Note

    You can't change the queue type after you create the queue.

  4. Enter a Name for your queue. The name of a FIFO queue must end with the .fifo suffix.

  5. (Optional) The console sets default values for the queue configuration parameters. Under Configuration, you can set new values for the following parameters:

    1. For Visibility timeout , enter the duration and units. The range is from 0 seconds to 12 hours. The default value is 30 seconds.

    2. For Message retention period, enter the duration and units. The range is from 1 minute to 14 days. The default value is 4 days.

    3. For Delivery delay, enter the duration and units. The range is from 0 seconds to 15 minutes. The default value is 0 seconds.

    4. For Maximum message size, enter a value. The range is from 1 KB to 256 KB. The default value is 256 KB.

    5. For Receive message wait time, enter a value. The range is from 0 to 20 seconds. The default value is 0 seconds, which sets short polling. Any non-zero value sets long polling.

    6. For a FIFO queue, choose Enable content-based deduplication to enable content-based deduplication. The default setting is disabled.

    7. (Optional) For a FIFO queue, to enable higher throughput for sending and receiving messages in the queue, choose Enable high throughput FIFO. This option is currently in preview release. Choosing this option changes the related preview options (Deduplication scope and FIFO throughput limit) to the required settings for enabling high throughput. For more information, see Preview: High throughput for FIFO queues and Quotas related to messages.

  6. (Optional) Define an Access policy. The access policy defines the accounts, users, and roles that can access the queue. The access policy also defines the actions (such as SendMessage, ReceiveMessage, or DeleteMessage) that the users can access. The default policy allows only the queue owner to send and receive messages.

    To define the access policy, do one of the following:

    • Choose Basic to configure who can send messages to the queue and who can receive messages from the queue. The console creates the policy based on your choices and displays the resulting access policy in the read-only JSON panel.

    • Choose Advanced to modify the JSON access policy directly. This allows you to specify a custom set of actions that each principal (account, user, or role) can perform.

  7. (Optional) To configure encryption for the queue, expand Encryption.

  8. (Optional) To configure a dead-letter queue to receive undeliverable messages, expand Dead-letter queue.

  9. (Optional) To add tags to the queue, expand Tags.

  10. Choose Create queue. Amazon SQS creates the queue and displays the queue's Details page.

Amazon SQS propagates information about the new queue across the system. Because Amazon SQS is a distributed system, you might experience a slight delay before the console displays the queue on the Queues page.

After creating a queue, you can send messages to it, and receive and delete messages. You can also edit any of the queue configuration settings except the queue type.