Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 2.7 KB

File metadata and controls

49 lines (34 loc) · 2.7 KB
subcategory
Compute

databricks_clusters 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 authentication is not configured for provider errors.

Retrieves a list of databricks_cluster ids, that were created by Terraform or manually, with or without databricks_cluster_policy.

Example Usage

Retrieve all clusters on this workspace on AWS or GCP:

data "databricks_clusters" "all" {
  depends_on = [databricks_mws_workspaces.this]
}

Retrieve all clusters with "Shared" in their cluster name on this Azure Databricks workspace:

data "databricks_clusters" "all_shared" {
  depends_on            = [azurerm_databricks_workspace.this]
  cluster_name_contains = "shared"
}

Argument Reference

  • cluster_name_contains - (Optional) Only return databricks_cluster ids that match the given name string.

Attribute Reference

This data source exports the following attributes:

Related Resources

The following resources are used in the same context: