Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 2.57 KB

File metadata and controls

47 lines (32 loc) · 2.57 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 default auth: cannot configure default credentials errors.

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

Example Usage

Retrieve cluster IDs for all clusters:

data "databricks_clusters" "all" {
}

Retrieve cluster IDs for all clusters having "Shared" in the cluster name:

data "databricks_clusters" "all_shared" {
  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: