databricks_tables Data Source
October 29, 2025 ยท View on GitHub
Retrieves a list of managed or external table full names in Unity Catalog, that were created by Terraform or manually. Use databricks_views for retrieving a list of views.
-> This data source can only be used with a workspace-level provider!
Example Usage
Granting SELECT and MODIFY to sensitive group on all tables a things databricks_schema from sandbox databricks_catalog:
data "databricks_tables" "things" {
catalog_name = "sandbox"
schema_name = "things"
}
resource "databricks_grants" "things" {
for_each = data.databricks_tables.things.ids
table = each.value
grant {
principal = "sensitive"
privileges = ["SELECT", "MODIFY"]
}
}
Argument Reference
catalog_name- (Required) Name of databricks_catalogschema_name- (Required) Name of databricks_schemaprovider_config- (Optional) Configure the provider for management through account provider. This block consists of the following fields:workspace_id- (Required) Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
Attribute Reference
This data source exports the following attributes:
ids- set of databricks_table full names:catalog.schema.table
Related Resources
The following resources are used in the same context:
- databricks_schema to manage schemas within Unity Catalog.
- databricks_catalog to manage catalogs within Unity Catalog.