Yandex Cloud
Поиск
Связаться с экспертомПопробовать бесплатно
  • Кейсы
  • Документация
  • Блог
  • Все сервисы
    • Cloud Interconnect
    • Cloud Backup
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Router
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Managed Service for YDB
    • SpeechKit
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • Container Registry
    • Managed Service for Prometheus®
    • Message Queue
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Cloud Apps
    • Yandex AI Studio
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Yandex Cloud Video
    • Stackland
    • Yandex StoreDoc
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • DataSphere
    • Vision OCR
    • Translate
    • Cloud Registry
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Managed Service for GitLab
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Serverless Integrations
    • IoT Core
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
  • Статус работы сервисов
  • Marketplace
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Искусственный интеллект
    • Безопасность
    • Инструменты DevOps
    • Бессерверные вычисления
    • Управление ресурсами
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
    • Акции и free tier
  • Кейсы
  • Документация
  • Блог
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»
Terraform в Yandex Cloud
  • Начало работы
  • Настройка аутентификации Terraform-провайдера Yandex Cloud
  • Библиотека решений
    • Обзор
    • История изменений (англ.)
          • ytsaurus_cluster

В этой статье:

  • Example usage
  • Arguments & Attributes Reference
  • Import
  1. Справочник Terraform
  2. Ресурсы (англ.)
  3. Ytsaurus
  4. Resources
  5. ytsaurus_cluster

yandex_ytsaurus_cluster (Resource)

Статья создана
Yandex Cloud
Обновлена 30 июля 2026 г.
Открыть в Markdown
  • Example usage
  • Arguments & Attributes Reference
  • Import

Example usageExample usage

//
// Create a new YTsaurus cluster
//
resource "yandex_ytsaurus_cluster" "my_cluster" {
  name = "my-cluster"
  description = "my_cluster description"

  zone_id			 = "ru-central1-a"
  subnet_id			 = "my_subnet_id"
  security_group_ids = ["my_security_group_id"]

  spec = {
	storage = {
	  hdd = {
	  	size_gb = 100
		count 	= 3
	  }

	  ssd = {
	  	size_gb = 100
		type 	= "network-ssd"
		count 	= 3
	  }
	}

	compute = [{
	  preset = "c8-m32"
	  disks = [{
	  	type 	= "network-ssd"
		size_gb = 50
	  }]
	  scale_policy = {
	  	fixed = {
		  size = 3
		}
	  }
	}]

	tablet = {
      preset = "c8-m16"
	  count = 3
	}

	proxy = {
	  http = {
	  	count = 1
	  }
      
	  rpc = {
	  	count = 1
	  }
	}
  }
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • cidr_blocks_whitelist [Block]. CIDRs whitelist.

    • v4_cidr_blocks (List Of String). IPv4 CIDR blocks.
  • cluster_id (String). ID of the cluster to return.

  • created_at (Read-Only) (String). Time when the cluster was created.

  • created_by (Read-Only) (String). User who created the cluster.

  • description (String). Description of the cluster.

  • endpoints [Block]. Endpoints of the cluster.

    • external_http_proxy_balancer (Read-Only) (String). package: yandex.cloud.ytsaurus.v1
      filename: yandex/cloud/ytsaurus/v1/cluster.proto

    • internal_http_proxy_alias (Read-Only) (String). package: yandex.cloud.ytsaurus.v1
      filename: yandex/cloud/ytsaurus/v1/cluster.proto

    • internal_rpc_proxy_alias (Read-Only) (String). package: yandex.cloud.ytsaurus.v1
      filename: yandex/cloud/ytsaurus/v1/cluster.proto

    • ui (Read-Only) (String). package: yandex.cloud.ytsaurus.v1
      filename: yandex/cloud/ytsaurus/v1/cluster.proto

  • folder_id (String). ID of the folder that the cluster belongs to.

  • health (Read-Only) (String). Health of the cluster.

  • id (String). ID of the cluster to return.

  • labels (Map Of String). Cluster labels as key:value pairs.

  • maintenance_window [Block]. Maintenance window of the cluster.

    • anytime [Block]. Maintenance can be scheduled anytime.
    • weekly_maintenance_window [Block]. Maintenance is allowed only within the specified weekly window.
      • day (String). Day of the week when maintenance can occur.
      • hour (Number). Hour of the day in UTC when the maintenance window starts.
  • name (String). Name of the cluster.
    The name is unique within the folder.

  • security_group_ids (List Of String). Network interfaces security groups.

  • spec [Block]. Cluster specification.

    • client_logging [Block]. Client Cloud logging configuration.

      • audit_logs_enabled (Bool). Enable audit logs.
      • folder_id (String). ID of cloud logging folder. Used default loging group.
      • log_group_id (String). ID of cloud logging group.
      • service_account_id (String). ID of Service account used for write logs.
    • compute [Block]. Cluster exec nodes configuration.

      • disks [Block]. Configuration of exec node strorage.
        • location_quotas_gb (List Of Number). Quotas for each location. Must be the same length as locations or empty. Zero value will disable quota for location.
        • locations (List Of String). Locations on a disk.
        • size_gb (Number). Size of a single disk in GB.
        • type (String). Type of a disk.
      • name (String). Name for exec pool.
      • preset (String). VM configuration preset name.
      • scale_policy [Block]. Exec nodes scaling policy.
        • auto [Block]. Scale policy that can adjust number of running exec nodes within specified range based on some criteria.

          • initial_size (Number). package: yandex.cloud.ytsaurus.v1
            filename: yandex/cloud/ytsaurus/v1/cluster.proto

          • linear [Block]. package: yandex.cloud.ytsaurus.v1
            filename: yandex/cloud/ytsaurus/v1/cluster.proto

            • cooldown_interval (String). Cooldown interval.
            • overload_coefficient (Number). Overload coefficient.
            • statistics_interval (String). Statistics interval.
            • underload_coefficient (Number). Underload coefficient.
          • max_size (Number). package: yandex.cloud.ytsaurus.v1
            filename: yandex/cloud/ytsaurus/v1/cluster.proto

          • min_size (Number). package: yandex.cloud.ytsaurus.v1
            filename: yandex/cloud/ytsaurus/v1/cluster.proto

        • fixed [Block]. Scale policy that doesn't change number of running exec nodes over time.

          • size (Number). package: yandex.cloud.ytsaurus.v1
            filename: yandex/cloud/ytsaurus/v1/cluster.proto
    • cron [Block]. Cluster regular processing settings.

      • clear_tmp [Block]. Cluster regular tmp-account cleaning settings.
        • account_usage_ratio_save_per_owner (Number). Per account max space usage ratio.
        • account_usage_ratio_save_total (Number). Total max space usage ratio.
        • interval (String). Script starting interval.
        • max_dir_node_count (Number). Max nodes in every directory.
    • excel [Block]. Cluster Excel configuration.

      • enabled (Bool). Enable Excel.
    • flavor (String). Cluster flavor (type).

    • odin [Block]. Odin configuration.

      • checks_ttl (String). TTL of Odin check samples.
    • proxy [Block]. Cluster proxies configuration.

      • http [Block]. Configuration of HTTP proxies.
        • count (Number). Total amount of HTTP proxies.
      • rpc [Block]. Configuration of rpc proxies.
        • count (Number). Total amount of RPC proxies.
      • task [Block]. Configuration of task proxies.
        • count (Number). Total amount of task proxies.
    • storage [Block]. Cluster storage configuration.

      • hdd [Block]. Configuration of cluster HDD strorage.
        • count (Number). Total amount of HDD disks.
        • size_gb (Number). Size of a single HDD disk in GB.
      • ssd [Block]. Configuration of cluster SSD strorage
        • changelogs [Block]. Configuration of dynamic table changelogs.

          • size_gb (Number). package: yandex.cloud.ytsaurus.v1
            filename: yandex/cloud/ytsaurus/v1/cluster.proto
        • count (Number). Total amount of SSD disks.

        • size_gb (Number). Size of a single SSD disk in GB.

        • type (String). Type of a SSD disk.

    • tablet [Block]. Cluster tablet nodes configuration.

      • count (Number). Total amount of tablet nodes.
      • preset (String). VM configuration preset name.
  • status (Read-Only) (String). Status of the cluster.

  • subnet_id (Required)(String). ID of the subnet where the cluster resides.

  • timeouts [Block].

    • create (String). A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    • delete (String). A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    • read (String). A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    • update (String). A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
  • updated_at (Read-Only) (String). Time when the cluster was last updated.

  • updated_by (Read-Only) (String). User who last updated the cluster.

  • zone_id (Required)(String). ID of the availability zone where the cluster resides.

ImportImport

The resource can be imported by using their resource ID. For getting it you can use Yandex Cloud Web Console or Yandex Cloud CLI.

terraform import yandex_ytsaurus_cluster.my_cluster some_cluster_id

Была ли статья полезна?

Предыдущая
ytsaurus_cluster
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»