-
Notifications
You must be signed in to change notification settings - Fork 121
/
variables.tf
50 lines (42 loc) · 1.32 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
variable "tags" {
default = {}
type = map(string)
description = "(Optional) List of tags to be propagated across all assets in this demo"
}
variable "prefix" {
type = string
description = "(Optional) Prefix to name the resources created by this module"
}
variable "region" {
type = string
description = "(Required) AWS region where the assets will be deployed"
}
variable "aws_account_id" {
type = string
description = "(Required) AWS account ID where the cross-account role for Unity Catalog will be created"
}
variable "databricks_account_id" {
type = string
description = "(Required) Databricks Account ID"
}
variable "databricks_workspace_ids" {
description = <<EOT
List of Databricks workspace IDs to be enabled with Unity Catalog.
Enter with square brackets and double quotes
e.g. ["111111111", "222222222"]
EOT
type = list(string)
default = []
}
variable "unity_metastore_owner" {
description = "(Required) Name of the principal that will be the owner of the Metastore"
type = string
}
variable "metastore_name" {
description = "(Optional) Name of the metastore that will be created"
type = string
default = null
}
locals {
metastore_name = var.metastore_name == null ? "${var.prefix}-metastore" : var.metastore_name
}