Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.12 KB

File metadata and controls

31 lines (22 loc) · 1.12 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