Skip to content

Commit f9e7efa

Browse files
author
oleh_mykolaishyn
committed
fix: support system schemas
1 parent 02be393 commit f9e7efa

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ resource "databricks_sql_endpoint" "this" {
5151
}
5252
depends_on = [databricks_sql_global_config.this]
5353
}
54+
55+
resource "databricks_system_schema" "this" {
56+
for_each = var.system_schemas_enabled ? var.system_schemas : toset([])
57+
58+
schema = each.value
59+
}

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,15 @@ variable "mount_cluster_name" {
231231
description = "Name of the cluster that will be used during storage mounting. If mount_adls_passthrough == true, cluster should also have option cluster_conf_passthrought == true"
232232
default = null
233233
}
234+
235+
variable "system_schemas" {
236+
type = set(string)
237+
description = "Set of strings with all possible System Schema names"
238+
default = ["access", "billing", "compute", "marketplace", "storage"]
239+
}
240+
241+
variable "system_schemas_enabled" {
242+
type = bool
243+
description = "System Schemas only works with assigned Unity Catalog Metastore. Boolean flag to enabled this feature"
244+
default = false
245+
}

0 commit comments

Comments
 (0)