Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • ИИ для бизнеса
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
    • Промоакции и free tier
    • Правила тарификации
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Terraform в Yandex Cloud
  • Начало работы
  • Библиотека решений
    • Обзор
    • История изменений (англ.)
          • trino_access_control
          • trino_catalog
          • trino_cluster

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

  • Example usage
  • Schema
  • Required
  • Optional
  • Read-Only
  • Nested Schema for coordinator
  • Nested Schema for worker
  • Nested Schema for worker.auto_scale
  • Nested Schema for worker.fixed_scale
  • Nested Schema for logging
  • Nested Schema for maintenance_window
  • Nested Schema for retry_policy
  • Nested Schema for retry_policy.exchange_manager
  • Nested Schema for retry_policy.exchange_manager.service_s3
  • Nested Schema for timeouts
  • Nested Schema for tls
  • Import
  1. Справочник Terraform
  2. Ресурсы (англ.)
  3. Managed Service for Trino
  4. Resources
  5. trino_cluster

yandex_trino_cluster (Resource)

Статья создана
Yandex Cloud
Обновлена 20 октября 2025 г.
  • Example usage
  • Schema
    • Required
    • Optional
    • Read-Only
    • Nested Schema for coordinator
    • Nested Schema for worker
    • Nested Schema for worker.auto_scale
    • Nested Schema for worker.fixed_scale
    • Nested Schema for logging
    • Nested Schema for maintenance_window
    • Nested Schema for retry_policy
    • Nested Schema for retry_policy.exchange_manager
    • Nested Schema for retry_policy.exchange_manager.service_s3
    • Nested Schema for timeouts
    • Nested Schema for tls
  • Import

Managed Trino cluster.

Example usageExample usage

resource "yandex_trino_cluster" "trino" {
  name               = "trino-created-with-terraform"
  service_account_id = yandex_iam_service_account.trino.id
  subnet_ids         = [yandex_vpc_subnet.a.id, yandex_vpc_subnet.b.id, yandex_vpc_subnet.d.id]

  coordinator = {
    resource_preset_id = "c8-m32"
  }

  worker = {
    fixed_scale = {
      count = 4
    }
    resource_preset_id = "c4-m16"
  }


  retry_policy = {
    additional_properties = {
      fault-tolerant-execution-max-task-split-count = 1024
    }
    policy = "TASK"
    exchange_manager = {
      additional_properties = {
        exchange.sink-buffer-pool-min-size = 16
      }
      service_s3 = {}
    }
  }

  maintenance_window = {
    day  = "MON"
    hour = 15
    type = "ANYTIME"
  }
}

SchemaSchema

RequiredRequired

  • coordinator (Attributes) Configuration of coordinator instances. (see below for nested schema)
  • name (String) The resource name.
  • service_account_id (String) Service account which linked to the resource. For more information, see documentation.
  • subnet_ids (Set of String) The list of VPC subnets identifiers which resource is attached.
  • worker (Attributes) Configuration of worker instances. (see below for nested schema)

OptionalOptional

  • deletion_protection (Boolean) The true value means that resource is protected from accidental deletion.
  • description (String) The resource description.
  • folder_id (String) The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • labels (Map of String) A set of key/value label pairs which assigned to resource.
  • logging (Attributes) Cloud Logging configuration. (see below for nested schema)
  • maintenance_window (Attributes) Configuration of window for maintenance operations. (see below for nested schema)
  • retry_policy (Attributes) Configuration for retry policy, specifying the spooling storage destination and other settings. (see below for nested schema)
  • security_group_ids (Set of String) The list of security groups applied to resource or their components.
  • timeouts (Block, Optional) (see below for nested schema)
  • tls (Attributes) Configuration for TLS. (see below for nested schema)
  • version (String) Trino version. Format: "Number".

Read-OnlyRead-Only

  • created_at (String) The creation timestamp of the resource.
  • id (String) The resource identifier.

Nested Schema for Nested Schema for coordinator

Required:

  • resource_preset_id (String) The identifier of the preset for computational resources available to an instance (CPU, memory etc.).

Nested Schema for Nested Schema for worker

Required:

  • resource_preset_id (String) The identifier of the preset for computational resources available to an instance (CPU, memory etc.).

Optional:

  • auto_scale (Attributes) A scaling policy that dynamically adjusts the number of worker instances based on the cluster's workload. (see below for nested schema)
  • fixed_scale (Attributes) A fixed scaling policy that specifies a fixed number of worker instances. (see below for nested schema)

Nested Schema for Nested Schema for worker.auto_scale

Required:

  • max_count (Number) The maximum number of worker instances.
  • min_count (Number) The minimum number of worker instances.

Nested Schema for Nested Schema for worker.fixed_scale

Required:

  • count (Number) Specifies the number of worker instances.

Nested Schema for Nested Schema for logging

Required:

  • enabled (Boolean) Enables delivery of logs generated by the Trino components to Cloud Logging.

Optional:

  • folder_id (String) Logs will be written to default log group of specified folder. Exactly one of the attributes folder_id or log_group_id should be specified.
  • log_group_id (String) Logs will be written to the specified log group. Exactly one of the attributes folder_id or log_group_id should be specified.
  • min_level (String) Minimum level of messages that will be sent to Cloud Logging. Can be either TRACE, DEBUG, INFO, WARN, ERROR or FATAL. If not set then server default is applied (currently INFO).

Nested Schema for Nested Schema for maintenance_window

Optional:

  • day (String) Day of week for maintenance window. One of MON, TUE, WED, THU, FRI, SAT, SUN.
  • hour (Number) Hour of day in UTC time zone (1-24) for maintenance window.
  • type (String) Type of maintenance window. Can be either ANYTIME or WEEKLY. If WEEKLY, day and hour must be specified.

Nested Schema for Nested Schema for retry_policy

Required:

  • exchange_manager (Attributes) Configuration for exchange manager. (see below for nested schema)
  • policy (String) Retry policy level

Optional:

  • additional_properties (Map of String) Additional properties.

Nested Schema for Nested Schema for retry_policy.exchange_manager

Required:

  • service_s3 (Attributes) Use S3 created on service side as exchange manager. (see below for nested schema)

Optional:

  • additional_properties (Map of String) Additional properties.

Nested Schema for Nested Schema for retry_policy.exchange_manager.service_s3

Nested Schema for Nested Schema for timeouts

Optional:

  • 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). 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.
  • 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).

Nested Schema for Nested Schema for tls

Optional:

  • trusted_certificates (List of String) Trusted CA-certificates. Each element should contain single self-signed CA-certificate or chain of CA-certificates where first certificate if leaf and last certificate is self-signed root.

ImportImport

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

# terraform import yandex_trino_cluster.<resource Name> <resource Id>
terraform import yandex_tirno_cluster.my_trino_cluster c9qk5**********h6a91

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

Предыдущая
trino_catalog
Следующая
ydb_database_dedicated
Проект Яндекса
© 2025 ООО «Яндекс.Облако»