resource "cloudru_evolution_spark_spark" "resource_spark" {cluster_id = "0000-0000-0000-0000-0000"project_id = "0000-0000-0000-0000-0000"compute_configuration = {flavor_id = "0000-0000-0000-0000-0000"min_nodes = 1max_nodes = 5}name = "spark-instance"description = "Spark cluster description"enabled_external_host = truelog_group_id = "0000-0000-0000-0000-0000"internal_s3_config = {tenant_id = "0000-0000-0000-0000-0000"bucket = "bucket"}external_s3_config = {bucket = "bucket"endpoint = "https://s3.cloud.ru"access_key_secret_id = "0000-0000-0000-0000-0000"secret_key_secret_id = "0000-0000-0000-0000-0000"region = "ru-central-1"}network_configuration = {subnet_id = "0000-0000-0000-0000-0000"zone_id = "0000-0000-0000-0000-0000"}user = {username = "spark-user"password_secret_id = "0000-0000-0000-0000-0000"}version_id = "0000-0000-0000-0000-0000"// Позволяет переопределить дефолтный таймаут провайдера для определенного метода. Если нужно указать бесконечный таймаут, то нужно указать например 0s, тогда таймаута не будет.timeouts {create = "60m"update = "30m"delete = "20m"}// Игнорировать изменения таймаутов: это предотвращает лишние обновления ресурса при смене значений таймаутов в конфигурации// Но следует учитывать, что метод delete в ресурсе читает значение таймаута из стейта и, если его нужно изменить, то этот блок стоит закомментироватьlifecycle {ignore_changes = [timeouts]}}
cluster_id (String) Идентификатор кластера.
compute_configuration (Attributes) Параметры конфигурации вычислительных ресурсов. (see below for nested schema)
enabled_external_host (Boolean) Флаг разрешает или запрещает внешний хост.
log_group_id (String) Идентификатор группы логирования.
name (String) Название.
network_configuration (Attributes) Конфигурация сети. (see below for nested schema)
project_id (String) Идентификатор проекта.
user (Attributes) Пользователь Managed Spark для доступа к Spark History. (see below for nested schema)
description (String) Описание.
external_s3_config (Attributes) Конфигурация параметров внешнего хранилища S3. (see below for nested schema)
internal_s3_config (Attributes) Конфигурация параметров Object Storage. (see below for nested schema)
timeouts (Block, Optional) (see below for nested schema)
version_id (String) Идентификатор версии Managed Spark.
created_at (String) Время создания.
created_by (String) Идентификатор создавшего пользователя.
hs_external_host (String) URL внешнего хоста Spark History.
hs_internal_host (String) URL внутреннего хоста Spark History.
id (String) Идентификатор инстанса Managed Spark.
s3_eventlog_url (String) URL директории с логами Spark в хранилище S3.
spark_connect_id (String) Идентификатор Spark Connect.
status (String) Статус инстанса Managed Spark.
updated_at (String) Время обновления.
updated_by (String) Идентификатор обновившего пользователя.
version (Attributes) Версия Managed Spark. (see below for nested schema)
Required:
flavor_id (String) Идентификатор flavor.
max_nodes (Number) Максимальное количество узлов.
min_nodes (Number) Минимальное количество узлов.
Required:
subnet_id (String) Идентификатор подсети.
zone_id (String) Идентификатор зоны доступности.
Required:
password_secret_id (String) Пароль в формате secret manager secret_id.
username (String) Имя пользователя.
Required:
access_key_secret_id (String) Access key в формате secret manager secret_id.
bucket (String) Имя бакета.
endpoint (String) URL эндпоинта.
region (String) Регион, например, ru-central-1.
secret_key_secret_id (String) Secret key в формате secret manager secret_id.
Required:
bucket (String) Имя бакета.
tenant_id (String) Идентификатор арендатора.
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).
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).
Read-Only:
description (String) Описание.
managed_spark_version (String) Номер версии Managed Spark.
name (String) Название.
version_id (String) Идентификатор версии.