Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.23 KB

File metadata and controls

32 lines (23 loc) · 1.23 KB
subcategory
Workspace

databricks_notebook Data Source

-> Note If you have a fully automated setup with workspaces created by databricks_mws_workspaces or azurerm_databricks_workspace, please make sure to add depends_on attribute in order to prevent default auth: cannot configure default credentials errors.

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

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.

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