Skip to content

Latest commit

 

History

History
executable file
·
42 lines (27 loc) · 1.77 KB

mws_workspaces.md

File metadata and controls

executable file
·
42 lines (27 loc) · 1.77 KB
subcategory
Deployment

databricks_mws_workspaces 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.

Lists all databricks_mws_workspaces in Databricks Account.

-> Note account_id provider configuration property is required for this resource to work.

Example Usage

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
}

Attribute Reference

-> 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

Related Resources

The following resources are used in the same context: