Skip to content

WorkspaceBaseEnvironment

laktory.models.resources.databricks.WorkspaceBaseEnvironment ¤

Bases: WorkspaceBaseEnvironmentBase

Databricks workspace base environment

Shareable serverless environment (environment version and Python dependencies) defined by an environment YAML file stored in the workspace or a Unity Catalog volume, e.g. to share the Laktory wheel and its dependencies across serverless notebooks and jobs. Maps to the Terraform databricks_environments_workspace_base_environment resource.

Examples:

import io

from laktory import models

environment_yaml = '''
display_name: laktory
filepath: /Volumes/dev/sources/environments/laktory.yaml
base_environment_type: CPU
'''
environment = (
    models.resources.databricks.WorkspaceBaseEnvironment.model_validate_yaml(
        io.StringIO(environment_yaml)
    )
)
References
BASE DESCRIPTION
base_environment_type

The type of base environment (CPU or GPU). Possible values are: CPU, GPU

TYPE: str | None | VariableType DEFAULT: None

display_name

Human-readable display name for the workspace base environment

TYPE: str | VariableType

filepath

The WSFS or UC Volumes path to the environment YAML file

TYPE: str | None | VariableType DEFAULT: None

provider_config

Configure the provider for management through account provider

TYPE: WorkspaceBaseEnvironmentProviderConfig | None | VariableType DEFAULT: None

workspace_base_environment_id

The ID to use for the workspace base environment, which will become the final component of the resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/

TYPE: str | None | VariableType DEFAULT: None


laktory.models.resources.databricks.workspacebaseenvironment.WorkspaceBaseEnvironmentProviderConfig ¤

Bases: BaseModel

PARAMETER DESCRIPTION
workspace_id

Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with

TYPE: str | None | VariableType DEFAULT: None