yandex_datasphere_project (Resource)
Written by
Updated at August 7, 2025
Allows management of Yandex Cloud Datasphere Projects.
Example 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"
}
Schema
Required
community_id(String) Community ID where project would be created.name(String) The resource name.
Optional
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-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 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 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 zoneru-central1-aare supported.
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).
Import
The resource can be imported by using their resource ID. For getting the resource ID you can use Yandex Cloud Web Console
# terraform import yandex_datasphere_project.<resource Name> <resource Id>
terraform import yandex_datasphere_project.my-project ...