subcategory |
---|
Deployment |
-> 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.
Lists all databricks_mws_workspaces in Databricks Account.
-> Note account_id
provider configuration property is required for this resource to work.
Listing all workspaces in
provider "databricks" {
// other configuration
account_id = "<databricks account id>"
}
data "databricks_mws_workspaces" "all" {}
output "all_mws_workspaces" {
value = data.databricks_mws_workspaces.all.ids
}
-> Note This resource has an evolving interface, which may change in future versions of the provider.
This data source exports the following attributes:
ids
- name-to-id map for all of the workspaces in the account
The following resources are used in the same context:
- databricks_mws_workspaces to manage Databricks E2 Workspaces.
- databricks_metastore_assignment to assign databricks_metastore to databricks_mws_workspaces or azurerm_databricks_workspace