-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
173 lines (155 loc) · 4.86 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
variable "name" {
description = "Name used for the deployment. All resources prefixed based on the Azure naming convention."
type = string
validation {
condition = alltrue([
length(var.name) >= 2,
length(var.name) <= 22
])
error_message = "Specified name must be between 2 and 22 characters long."
}
}
variable "resource_group_name" {
description = "The resource group you want to deploy to."
type = string
}
variable "application_insights_create" {
description = "Flag to create new Application Insights instance."
type = bool
default = true
}
variable "application_insights_existing" {
description = "(Optional) Existing Application Insights instance to be used (only if `application_insights_create = false`)."
type = object({
name = string
resource_group = string
})
default = {
name = null
resource_group = null
}
}
variable "application_insights_log_analytics" {
description = "(Optional) Existing Log Analytics workspace to be used (only if `application_insights_create = true`)."
type = object({
name = string
resource_group = string
})
default = {
name = null
resource_group = null
}
}
variable "application_insights_public_ingest" {
description = "(Optional) Enable public ingest of data to Application Insights instance (only if `application_insights_create = false`)."
type = bool
default = true
}
variable "application_insights_retention_days" {
description = "(Optional) Number of days to keep data in Application Insights instance (only if `application_insights_create = false`)."
type = number
default = 90
validation {
condition = can(regex("30|60|90|120|180|270|365|550|730", var.application_insights_retention_days))
error_message = "Retention days can only be one of [30 60 90 120 180 270 365 550 730]."
}
}
variable "azureml_public_access" {
description = "(Optional) Enable connectivity to AzureML workspace from public internet."
type = bool
default = true
}
variable "container_registry_create" {
description = "Flag to create new Container registry."
type = bool
default = true
}
variable "container_registry_existing" {
description = "(Optional) Existing Container registry instance to be used (only if `container_registry_create = false`)."
type = object({
name = string
resource_group = string
})
default = {
name = null
resource_group = null
}
}
variable "container_registry_sku" {
description = "SKU for Container registry instance (only if `container_registry_create = true`)."
type = string
default = "Basic"
validation {
condition = can(regex("Basic|Standard|Premium", var.container_registry_sku))
error_message = "Container registry SKU can only be `Basic`, `Standard` or `Premium`."
}
}
variable "key_vault_create" {
description = "Flag to create new Key Vault."
type = bool
default = true
}
variable "key_vault_existing" {
description = "(Optional) Existing Key Vault to be used (only if `key_vault_create = false`)."
type = object({
name = string
resource_group = string
})
default = {
name = null
resource_group = null
}
}
variable "key_vault_sku" {
description = "SKU for Key Vault (only if `key_vault_create = true`)"
type = string
default = "standard"
validation {
condition = can(regex("standard|premium", var.key_vault_sku))
error_message = "Container registry SKU can only be `standard` or `premium`."
}
}
variable "storage_account_create" {
description = "Flag to create new storage account."
type = bool
default = true
}
variable "storage_account_existing" {
description = "(Optional) Existing storage account to be used (only if `storage_account_create = false`)."
type = object({
name = string
resource_group = string
})
default = {
name = null
resource_group = null
}
}
variable "storage_account_network" {
description = "(Optional) Storage account network settings (only if `storage_account_create = true`)."
type = object({
default_action = string
bypass = list(string)
ip_rules = list(string)
virtual_network_subnet_ids = list(string)
})
default = null
}
variable "storage_account_settings" {
description = "(Optional) Storage account settings (only if `storage_account_create = true`)."
type = object({
kind = string
replication_type = string
tier = string
})
default = {
kind = "StorageV2"
replication_type = "LRS"
tier = "Standard"
}
}
variable "tags" {
description = "Tags used for all resources in the module."
type = map(string)
default = {}
}