Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
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
  • Audit Trails events
  • 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
View in Markdown
  • 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 queueAdding 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 queueAdding 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 labelsDeleting 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 labelsViewing 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
© 2026 Direct Cursus Technology L.L.C.