subcategory |
---|
Workspace |
-> 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.
data "databricks_notebook" "features" {
path = "/Production/Features"
format = "SOURCE"
}
path
- (Required) Notebook path on the workspaceformat
- (Required) Notebook format to export. EitherSOURCE
,HTML
,JUPYTER
, orDBC
.
This data source exports the following attributes:
content
- notebook content in selected formatlanguage
- notebook languageobject_id
- notebook object IDobject_type
- notebook object type