Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 2.46 KB

sql_warehouses.md

File metadata and controls

47 lines (32 loc) · 2.46 KB
subcategory
Databricks SQL

databricks_sql_warehouses 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_sql_endpoint ids, that were created by Terraform or manually.

Example Usage

Retrieve all SQL warehouses on this workspace on AWS or GCP:

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

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

data "databricks_sql_warehouses" "all_shared" {
  depends_on              = [azurerm_databricks_workspace.this]
  warehouse_name_contains = "shared"
}

Argument Reference

Attribute Reference

This data source exports the following attributes:

Related Resources

The following resources are often used in the same context: