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

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

  • Example usage
  • Schema
  • Required
  • Optional
  • Read-Only
  • Nested Schema for limits
  • Nested Schema for settings
  • Nested Schema for timeouts
  • Import
  1. Справочник Terraform
  2. Ресурсы (англ.)
  3. Datasphere
  4. Resources
  5. datasphere_project

yandex_datasphere_project (Resource)

Статья создана
Yandex Cloud
Обновлена 7 августа 2025 г.
  • Example usage
  • Schema
    • Required
    • Optional
    • Read-Only
    • Nested Schema for limits
    • Nested Schema for settings
    • Nested Schema for timeouts
  • Import

Allows management of Yandex Cloud Datasphere Projects.

Example usageExample usage

//
// Create a new Datasphere Project.
//
resource "yandex_datasphere_project" "my-project" {
  name        = "example-datasphere-project"
  description = "Datasphere Project description"

  labels = {
    "foo" : "bar"
  }

  community_id = yandex_datasphere_community.my-community.id

  limits = {
    max_units_per_hour      = 10
    max_units_per_execution = 10
    balance                 = 10
  }

  settings = {
    service_account_id      = yandex_iam_service_account.my-account.id
    subnet_id               = yandex_vpc_subnet.my-subnet.id
    commit_mode             = "AUTO"
    data_proc_cluster_id    = "foo-data-proc-cluster-id"
    security_group_ids      = [yandex_vpc_security_group.my-security-group.id]
    ide                     = "JUPYTER_LAB"
    default_folder_id       = "foo-folder-id"
    stale_exec_timeout_mode = "ONE_HOUR"
  }
}

resource "yandex_datasphere_community" "my-community" {
  name               = "example-datasphere-community"
  description        = "Description of community"
  billing_account_id = "example-organization-id"
  labels = {
    "foo" : "bar"
  }
  organization_id = "example-organization-id"
}

SchemaSchema

RequiredRequired

  • community_id (String) Community ID where project would be created.
  • name (String) The resource name.

OptionalOptional

  • description (String) The resource name.
  • labels (Map of String) A set of key/value label pairs which assigned to resource.
  • limits (Attributes) Datasphere Project limits configuration. (see below for nested schema)
  • settings (Attributes) Datasphere Project settings configuration. (see below for nested schema)
  • timeouts (Attributes) (see below for nested schema)

Read-OnlyRead-Only

  • created_at (String) The creation timestamp of the resource.
  • created_by (String) Creator account ID of the Datasphere Project.
  • id (String) The resource identifier.

Nested Schema for Nested Schema for limits

Optional:

  • balance (Number) The number of units available to the project.
  • max_units_per_execution (Number) The number of units that can be spent on the one execution.
  • max_units_per_hour (Number) The number of units that can be spent per hour.

Nested Schema for Nested Schema for settings

Optional:

  • data_proc_cluster_id (String) ID of the DataProcessing cluster.
  • default_folder_id (String) Default project folder ID.
  • security_group_ids (Set of String) The list of security groups applied to resource or their components.
  • service_account_id (String) Service account which linked to the resource.
  • stale_exec_timeout_mode (String) The timeout to automatically stop stale executions. The following modes can be used:
  • ONE_HOUR: Setting to automatically stop stale execution after one hour with low consumption.
  • THREE_HOURS: Setting to automatically stop stale execution after three hours with low consumption.
  • NO_TIMEOUT: Setting to never automatically stop stale executions.
  • subnet_id (String) ID of the subnet where the DataProcessing cluster resides. Currently only subnets created in the availability zone ru-central1-a are supported.

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

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_datasphere_project.<resource Name> <resource Id>
terraform import yandex_datasphere_project.my-project ...

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

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