Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Message Queue
    • Overview
    • Configuring the AWS CLI
    • Creating a new message queue
    • Sending messages
    • Receiving and deleting messages
    • Deleting a message queue
    • Managing queue labels
    • Monitoring processes in queues
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Public materials
  • FAQ

In this article:

  • Adding labels when creating a queue
  • Adding or updating labels of an existing queue
  • Deleting queue labels
  • Viewing queue labels
  1. Step-by-step guides
  2. Managing queue labels

Managing queue labels

Written by
Yandex Cloud
Updated at March 31, 2025
  • Adding labels when creating a queue
  • Adding or updating labels of an existing queue
  • Deleting queue labels
  • Viewing queue labels

Labels are key-value pairs for logical tagging of queues.

Adding labels when creating a queue

AWS CLI
  1. Install and configure the AWS CLI.

  2. When creating a queue, specify the labels you need:

    aws sqs create-queue \
      --queue-name <queue_name> \
      --endpoint <endpoint>
      --tags <labels>
    

    Where:

    • --queue-name: Name of the new queue, e.g., sample-queue.
    • --endpoint: Endpoint in the https://message-queue.api.cloud.yandex.net/ value.
    • --tags: List of queue labels, e.g., key1=string,key2=string.

    Result:

    {
        "QueueUrl": "https://message-queue.api.cloud.yandex.net/aoeaql9r10cd********/000000000000********/sample-queue"
    }
    

Adding or updating labels of an existing queue

AWS CLI
  1. Install and configure the AWS CLI.

  2. Create a message queue.

  3. Add labels:

    aws sqs tag-queue \
      --queue-url <queue_URL> \
      --endpoint <endpoint>
      --tags <labels>
    

    Where:

    • --queue-url: URL of the queue to add or update labels for.
    • --endpoint: Endpoint in the https://message-queue.api.cloud.yandex.net/ value.
    • --tags: List of queue labels, e.g., key1=string,key2=string.

Deleting queue labels

AWS CLI
  1. Delete the labels of an existing queue:

    aws sqs untag-queue \
      --queue-url <queue_URL> \
      --endpoint <endpoint>
      --tag-keys <label_keys>
    

    Where:

    • --queue-url: URL of the queue whose labels you need to delete.
    • --endpoint: Endpoint in the https://message-queue.api.cloud.yandex.net/ value.
    • --tag-keys: List of queue label keys, e.g., key1 key2.

Viewing queue labels

AWS CLI
  1. To view the labels of an existing queue, run this command:

    aws sqs list-queue-tags \
      --queue-url <queue_URL> \
      --endpoint <endpoint>
    

    Where:

    • --queue-url: URL of the queue whose labels you need to get.
    • --endpoint: Endpoint in the https://message-queue.api.cloud.yandex.net/ value.

    Result:

    {
        "Tags": {
            "key1": "value1"
        }
    }
    

Was the article helpful?

Previous
Deleting a message queue
Next
Monitoring processes in queues
Yandex project
© 2025 Yandex.Cloud LLC