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:
TYPE:
|
display_name
|
Human-readable display name for the workspace base environment
TYPE:
|
filepath
|
The WSFS or UC Volumes path to the environment YAML file
TYPE:
|
provider_config
|
Configure the provider for management through account provider
TYPE:
|
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
TYPE:
|
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:
|