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
    • 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.
Terraform in Yandex Cloud
  • Getting started
  • Setting up Yandex Cloud Terraform provider authentication
  • Solution library
    • Overview
    • Release notes
          • ytsaurus_cluster

In this article:

  • Example usage
  • Arguments & Attributes Reference
  • Import
  1. Terraform reference
  2. Resources
  3. Ytsaurus
  4. Resources
  5. ytsaurus_cluster

yandex_ytsaurus_cluster (Resource)

Written by
Yandex Cloud
Updated at July 30, 2026
View in 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

Was the article helpful?

Previous
ytsaurus_cluster
© 2026 Direct Cursus Technology L.L.C.