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

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

  • Example usage
  • Schema
  • Optional
  • Read-Only
  • Nested Schema for location
  • Nested Schema for location.region
  • Nested Schema for scale_policy
  • Nested Schema for scale_policy.auto_scale
  • Nested Schema for scale_policy.auto_scale.target_tracking
  • Nested Schema for scale_policy.fixed_scale
  • Nested Schema for storage_config
  1. Справочник Terraform
  2. Ресурсы (англ.)
  3. Managed Service for YDB
  4. Data Sources
  5. ydb_database_dedicated

yandex_ydb_database_dedicated (Data Source)

Статья создана
Yandex Cloud
Обновлена 2 октября 2025 г.
  • Example usage
  • Schema
    • Optional
    • Read-Only
    • Nested Schema for location
    • Nested Schema for location.region
    • Nested Schema for scale_policy
    • Nested Schema for scale_policy.auto_scale
    • Nested Schema for scale_policy.auto_scale.target_tracking
    • Nested Schema for scale_policy.fixed_scale
    • Nested Schema for storage_config

Get information about a Yandex Database (dedicated) cluster. For more information, see the official documentation.

Важно

If database_id is not specified name and folder_id will be used to designate Yandex Database cluster.

Example usageExample usage

//
// Get information about existing YDB Dedicated Database.
//
data "yandex_ydb_database_dedicated" "my_database" {
  database_id = "some_ydb_dedicated_database_id"
}

output "ydb_api_endpoint" {
  value = data.yandex_ydb_database_dedicated.my_database.ydb_api_endpoint
}

SchemaSchema

OptionalOptional

  • database_id (String) ID of the Yandex Database cluster.
  • deletion_protection (Boolean) The true value means that resource is protected from accidental deletion.
  • folder_id (String) The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • name (String) The resource name.

Read-OnlyRead-Only

  • assign_public_ips (Boolean) Whether public IP addresses should be assigned to the Yandex Database cluster.
  • created_at (String) The creation timestamp of the resource.
  • database_path (String) Full database path of the Yandex Database cluster. Useful for SDK configuration.
  • description (String) The resource description.
  • id (String) The ID of this resource.
  • labels (Map of String) A set of key/value label pairs which assigned to resource.
  • location (List of Object) Location for the Yandex Database cluster. (see below for nested schema)
  • location_id (String) Location ID for the Yandex Database cluster.
  • network_id (String) The VPC Network ID of subnets which resource attached to.
  • resource_preset_id (String) The Yandex Database cluster preset. Available presets can be obtained via yc ydb resource-preset list command.
  • scale_policy (List of Object) Scaling policy for the Yandex Database cluster. (see below for nested schema)
  • security_group_ids (Set of String) The list of security groups applied to resource or their components.
  • status (String) Status of the Yandex Database cluster.
  • storage_config (List of Object) A list of storage configuration options for the Yandex Database cluster. (see below for nested schema)
  • subnet_ids (Set of String) The list of VPC subnets identifiers which resource is attached.
  • tls_enabled (Boolean) Whether TLS is enabled for the Yandex Database cluster. Useful for SDK configuration.
  • ydb_api_endpoint (String) API endpoint of the Yandex Database cluster. Useful for SDK configuration.
  • ydb_full_endpoint (String) Full endpoint of the Yandex Database cluster.

Nested Schema for Nested Schema for location

Read-Only:

  • region (Block List, Max: 1) Region for the Yandex Database cluster. (see below for nested schema)

Nested Schema for Nested Schema for location.region

Read-Only:

  • id (String) Region ID for the Yandex Database cluster.

Nested Schema for Nested Schema for scale_policy

Read-Only:

  • auto_scale (Block List, Max: 1) Auto scaling policy for the Yandex Database cluster. This is a preview feature, and you need to enable it using the label enable_autoscaling=1. (see below for nested schema)

  • fixed_scale (Block List, Max: 1) Fixed scaling policy for the Yandex Database cluster. (see below for nested schema)

Nested Schema for Nested Schema for scale_policy.auto_scale

Read-Only:

  • max_size (Number) Maximum number of nodes to which autoscaling can scale the database.

  • min_size (Number) Minimum number of nodes to which autoscaling can scale the database.

  • target_tracking (Block List, Min: 1, Max: 1) A target tracking scaling policy automatically scales the capacity of your Yandex Database cluster based on a target metric value. (see below for nested schema)

Nested Schema for Nested Schema for scale_policy.auto_scale.target_tracking

Read-Only:

  • cpu_utilization_percent (Number) A percentage of database nodes average CPU utilization.

Nested Schema for Nested Schema for scale_policy.fixed_scale

Read-Only:

  • size (Number) Number of instances for the Yandex Database cluster.

Nested Schema for Nested Schema for storage_config

Read-Only:

  • group_count (Number) Amount of storage groups of selected type for the Yandex Database cluster.

  • storage_type_id (String) Storage type ID for the Yandex Database cluster. Available presets can be obtained via yc ydb storage-type list command.

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

Предыдущая
trino_cluster
Следующая
ydb_database_serverless
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»