Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • message_queue

In this article:

  • Example usage
  • Schema
  • Required
  • Optional
  • Read-Only
  1. Terraform reference
  2. Resources
  3. Message Queue
  4. Data Sources
  5. message_queue

yandex_message_queue (Data Source)

Written by
Yandex Cloud
Updated at August 7, 2025
  • Example usage
  • Schema
    • Required
    • Optional
    • Read-Only

Get information about a Yandex Message Queue. For more information about Yandex Message Queue, see Yandex Cloud Message Queue.

Example usageExample usage

//
// Get information about existing Message Queue.
//
data "yandex_message_queue" "my_queue" {
  name = "ymq_terraform_example"
}

SchemaSchema

RequiredRequired

  • name (String) Queue name. The maximum length is 80 characters. You can use numbers, letters, underscores, and hyphens in the name. The name of a FIFO queue must end with the .fifo suffix. If not specified, random name will be generated. Conflicts with name_prefix. For more information see documentation.

OptionalOptional

  • access_key (String) The access key to use when applying changes. If omitted, ymq_access_key specified in provider config is used. For more information see documentation.
  • region_id (String) ID of the region where the message queue is located at. The default is 'ru-central1'.
  • secret_key (String, Sensitive) The secret key to use when applying changes. If omitted, ymq_secret_key specified in provider config is used. For more information see documentation.

Read-OnlyRead-Only

  • arn (String) ARN of the Yandex Message Queue. It is used for setting up a redrive policy. See documentation.
  • id (String) The ID of this resource.
  • url (String) URL of the queue.

Was the article helpful?

Previous
ytsaurus_cluster
Next
message_queue
© 2025 Direct Cursus Technology L.L.C.