Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.11 KB

File metadata and controls

34 lines (25 loc) · 1.11 KB
subcategory Workspace

databricks_notebook Data Source

This data source allows to export a notebook from Databricks Workspace.

-> This data source can only be used with a workspace-level provider!

Example Usage

data "databricks_notebook" "features" {
  path   = "/Production/Features"
  format = "SOURCE"
}

Argument Reference

  • path - (Required) Notebook path on the workspace
  • format - (Required) Notebook format to export. Either SOURCE, HTML, JUPYTER, or DBC.
  • provider_config - (Optional) Configure the provider for management through account provider. This block consists of the following fields:
    • workspace_id - (Required) Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.

Attribute Reference

This data source exports the following attributes:

  • content - notebook content in selected format
  • language - notebook language
  • object_id - notebook object ID
  • object_type - notebook object type
  • workspace_path - path on Workspace File System (WSFS) in form of /Workspace + path