You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <a name="input_catalog"></a> [catalog](#input\_catalog) | Map of catalog name and its parameters | <pre>map(object({<br/> catalog_grants = optional(map(list(string)))<br/> catalog_owner = optional(string) # Username/groupname/sp application_id of the catalog owner.<br/> catalog_storage_root = optional(string) # Location in cloud storage where data for managed tables will be stored<br/> catalog_isolation_mode = optional(string, "OPEN") # Whether the catalog is accessible from all workspaces or a specific set of workspaces. Can be ISOLATED or OPEN.<br/> catalog_comment = optional(string) # User-supplied free-form text<br/> catalog_properties = optional(map(string)) # Extensible Catalog Tags.<br/> schema_name = optional(list(string)) # List of Schema names relative to parent catalog.<br/> schema_grants = optional(map(list(string)))<br/> schema_owner = optional(string) # Username/groupname/sp application_id of the schema owner.<br/> schema_comment = optional(string)<br/> schema_properties = optional(map(string))<br/> }))</pre> | `{}` | no |
101
-
| <aname="input_isolated_unmanaged_catalog_bindings"></a> [isolated\_unmanaged\_catalog\_bindings](#input\_isolated\_unmanaged\_catalog\_bindings)| List of objects with parameters to configure Catalog Bindings | <pre>list(object({<br/> catalog_name = string # Name of ISOLATED catalog<br/> binding_type = optional(string, "BINDING_TYPE_READ_WRITE") # Binding mode. Possible values are BINDING_TYPE_READ_ONLY, BINDING_TYPE_READ_WRITE<br/> }))</pre> |`[]`| no |
102
-
| <aname="input_metastore_grants"></a> [metastore\_grants](#input\_metastore\_grants)| Permissions to give on metastore to user, group or service principal | <pre>set(object({<br/> principal = string<br/> privileges = list(string)<br/> }))</pre> |`[]`| no |
103
-
| <aname="input_metastore_id"></a> [metastore\_id](#input\_metastore\_id)| Unity Catalog Metastore Id that is located in separate environment. Provide this value to associate Databricks Workspace with target Metastore |`string`| n/a | yes |
110
+
| <a name="input_catalog_config"></a> [catalog\_config](#input\_catalog\_config) | | <pre>list(object({<br/><br/> # Catalog config<br/> catalog_name = string<br/> catalog_owner = optional(string) # Username/groupname/sp application_id of the catalog owner.<br/> catalog_storage_root = optional(string) # Location in cloud storage where data for managed tables will be stored<br/> catalog_isolation_mode = optional(string, "OPEN") # Whether the catalog is accessible from all workspaces or a specific set of workspaces. Can be ISOLATED or OPEN.<br/> catalog_comment = optional(string) # User-supplied free-form text<br/> catalog_properties = optional(map(string)) # Extensible Catalog Tags.<br/> catalog_grants = optional(list(object({ # List of objects to set catalog permissions<br/> principal = string # Account level group name, user or service principal app ID<br/> privileges = list(string)<br/> })), [])<br/><br/> # Schemas<br/> schema_default_grants = optional(list(object({ # Sets default grants for each schema created by 'schema_configs' block w/o 'schema_custom_grants' parameter set<br/> principal = string # Account level group name, user or service principal app ID<br/> privileges = list(string)<br/> })), [])<br/><br/> schema_configs = optional(list(object({<br/> schema_name = string<br/> schema_owner = optional(string)<br/> schema_comment = optional(string)<br/> schema_properties = optional(map(string))<br/> schema_custom_grants = optional(list(object({ # Overwrites 'schema_default_grants'<br/> principal = string # Account level group name, user or service principal app ID<br/> privileges = list(string)<br/> })), [])<br/> })), [])<br/> }))</pre> | `[]` | no |
111
+
| <aname="input_isolated_unmanaged_catalog_bindings"></a> [isolated\_unmanaged\_catalog\_bindings](#input\_isolated\_unmanaged\_catalog\_bindings)|| <pre>list(object({<br/> catalog_name = string # Name of ISOLATED catalog<br/> binding_type = optional(string, "BINDING_TYPE_READ_WRITE") # Binding mode. Possible values are BINDING_TYPE_READ_ONLY, BINDING_TYPE_READ_WRITE<br/> }))</pre> |`[]`| no |
104
112
| <aname="input_workspace_id"></a> [workspace\_id](#input\_workspace\_id)| ID of the target workspace. |`string`|`null`| no |
Copy file name to clipboardExpand all lines: variables.tf
+33-30Lines changed: 33 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -1,47 +1,50 @@
1
-
variable"metastore_id" {
2
-
type=string
3
-
description="Unity Catalog Metastore Id that is located in separate environment. Provide this value to associate Databricks Workspace with target Metastore"
4
-
5
-
validation {
6
-
condition=length(var.metastore_id) ==36
7
-
error_message="Create Metastore or connect to existing one in Init Layer using Private Endpoint. In case Unity Catalog is not required, remove 'databricks_catalog' variable from tfvars file."
8
-
}
9
-
}
10
-
11
-
# Metastore grants
12
-
variable"metastore_grants" {
13
-
type=set(object({
14
-
principal =string
15
-
privileges =list(string)
16
-
}))
17
-
description="Permissions to give on metastore to user, group or service principal"
18
-
default=[]
19
-
}
1
+
variable"catalog_config" {
2
+
type=list(object({
20
3
21
-
variable"catalog" {
22
-
type=map(object({
23
-
catalog_grants =optional(map(list(string)))
4
+
# Catalog config
5
+
catalog_name =string
24
6
catalog_owner =optional(string) # Username/groupname/sp application_id of the catalog owner.
25
7
catalog_storage_root =optional(string) # Location in cloud storage where data for managed tables will be stored
26
8
catalog_isolation_mode =optional(string, "OPEN") # Whether the catalog is accessible from all workspaces or a specific set of workspaces. Can be ISOLATED or OPEN.
27
9
catalog_comment =optional(string) # User-supplied free-form text
schema_name =optional(list(string)) # List of Schema names relative to parent catalog.
30
-
schema_grants =optional(map(list(string)))
31
-
schema_owner =optional(string) # Username/groupname/sp application_id of the schema owner.
32
-
schema_comment =optional(string)
33
-
schema_properties =optional(map(string))
11
+
catalog_grants =optional(list(object({ # List of objects to set catalog permissions
12
+
principal =string# Account level group name, user or service principal app ID
13
+
privileges =list(string)
14
+
})), [])
15
+
16
+
# Schemas
17
+
schema_default_grants =optional(list(object({ # Sets default grants for each schema created by 'schema_configs' block w/o 'schema_custom_grants' parameter set
18
+
principal =string# Account level group name, user or service principal app ID
0 commit comments