generated from Azure/terraform-azurerm-avm-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvariables.tf
392 lines (365 loc) · 14.3 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
variable "location" {
type = string
description = "Azure region where the each of the Private Link Private DNS Zones created and Resource Group, if created, will be deployed."
nullable = false
}
variable "resource_group_name" {
type = string
description = "The resource group where the resources will be deployed. Either the name of the new resource group to create or the name of an existing resource group."
}
variable "enable_telemetry" {
type = bool
default = true
description = <<DESCRIPTION
This variable controls whether or not telemetry is enabled for the module.
For more information see <https://aka.ms/avm/telemetryinfo>.
If it is set to false, then no telemetry will be collected.
DESCRIPTION
}
variable "lock" {
type = object({
kind = string
name = optional(string, null)
})
default = null
description = <<DESCRIPTION
Controls the Resource Lock configuration for the Resource Group that hosts the Private DNS Zones. The following properties can be specified:
- `kind` - (Required) The type of lock. Possible values are `\"CanNotDelete\"` and `\"ReadOnly\"`.
- `name` - (Optional) The name of the lock. If not specified, a name will be generated based on the `kind` value. Changing this forces the creation of a new resource.
DESCRIPTION
validation {
condition = var.lock != null ? contains(["CanNotDelete", "ReadOnly"], var.lock.kind) : true
error_message = "The lock level must be one of: 'None', 'CanNotDelete', or 'ReadOnly'."
}
}
variable "private_link_private_dns_zones" {
type = map(object({
zone_name = optional(string, null)
}))
default = {
azure_ml = {
zone_name = "privatelink.api.azureml.ms"
}
azure_ml_notebooks = {
zone_name = "privatelink.notebooks.azure.net"
}
azure_ai_cog_svcs = {
zone_name = "privatelink.cognitiveservices.azure.com"
}
azure_ai_oai = {
zone_name = "privatelink.openai.azure.com"
}
azure_bot_svc_bot = {
zone_name = "privatelink.directline.botframework.com"
}
azure_bot_svc_token = {
zone_name = "privatelink.token.botframework.com"
}
azure_service_hub = {
zone_name = "privatelink.servicebus.windows.net"
}
azure_data_factory = {
zone_name = "privatelink.datafactory.azure.net"
}
azure_data_factory_portal = {
zone_name = "privatelink.adf.azure.com"
}
azure_hdinsight = {
zone_name = "privatelink.azurehdinsight.net"
}
azure_data_explorer = {
zone_name = "privatelink.{regionName}.kusto.windows.net"
}
azure_storage_blob = {
zone_name = "privatelink.blob.core.windows.net"
}
azure_storage_queue = {
zone_name = "privatelink.queue.core.windows.net"
}
azure_storage_table = {
zone_name = "privatelink.table.core.windows.net"
}
azure_storage_file = {
zone_name = "privatelink.file.core.windows.net"
}
azure_storage_web = {
zone_name = "privatelink.web.core.windows.net"
}
azure_data_lake_gen2 = {
zone_name = "privatelink.dfs.core.windows.net"
}
azure_file_sync = {
zone_name = "privatelink.afs.azure.net"
}
azure_power_bi_tenant_analysis = {
zone_name = "privatelink.analysis.windows.net"
}
azure_power_bi_dedicated = {
zone_name = "privatelink.pbidedicated.windows.net"
}
azure_power_bi_power_query = {
zone_name = "privatelink.tip1.powerquery.microsoft.com"
}
azure_databricks_ui_api = {
zone_name = "privatelink.azuredatabricks.net"
}
azure_batch = {
zone_name = "privatelink.batch.azure.com"
}
azure_avd_global = {
zone_name = "privatelink-global.wvd.microsoft.com"
}
azure_avd_feed_mgmt = {
zone_name = "privatelink.wvd.microsoft.com"
}
azure_aks_mgmt = {
zone_name = "privatelink.{regionName}.azmk8s.io"
}
azure_acr_registry = {
zone_name = "privatelink.azurecr.io"
}
azure_acr_data = {
zone_name = "{regionName}.data.privatelink.azurecr.io"
}
azure_sql_server = {
zone_name = "privatelink.database.windows.net"
}
azure_cosmos_db_sql = {
zone_name = "privatelink.documents.azure.com"
}
azure_cosmos_db_mongo = {
zone_name = "privatelink.mongo.cosmos.azure.com"
}
azure_cosmos_db_cassandra = {
zone_name = "privatelink.cassandra.cosmos.azure.com"
}
azure_cosmos_db_gremlin = {
zone_name = "privatelink.gremlin.cosmos.azure.com"
}
azure_cosmos_db_table = {
zone_name = "privatelink.table.cosmos.azure.com"
}
azure_cosmos_db_analytical = {
zone_name = "privatelink.analytics.cosmos.azure.com"
}
azure_cosmos_db_postgres = {
zone_name = "privatelink.postgres.cosmos.azure.com"
}
azure_maria_db_server = {
zone_name = "privatelink.mariadb.database.azure.com"
}
azure_postgres_sql_server = {
zone_name = "privatelink.postgres.database.azure.com"
}
azure_mysql_db_server = {
zone_name = "privatelink.mysql.database.azure.com"
}
azure_redis_cache = {
zone_name = "privatelink.redis.cache.windows.net"
}
azure_redis_enterprise = {
zone_name = "privatelink.redisenterprise.cache.azure.net"
}
azure_arc_hybrid_compute = {
zone_name = "privatelink.his.arc.azure.com"
}
azure_arc_guest_configuration = {
zone_name = "privatelink.guestconfiguration.azure.com"
}
azure_arc_kubernetes = {
zone_name = "privatelink.dp.kubernetesconfiguration.azure.com"
}
azure_event_grid = {
zone_name = "privatelink.eventgrid.azure.net"
}
azure_api_management = {
zone_name = "privatelink.azure-api.net"
}
azure_healthcare_workspaces = {
zone_name = "privatelink.workspace.azurehealthcareapis.com"
}
azure_healthcare_fhir = {
zone_name = "privatelink.fhir.azurehealthcareapis.com"
}
azure_healthcare_dicom = {
zone_name = "privatelink.dicom.azurehealthcareapis.com"
}
azure_iot_hub = {
zone_name = "privatelink.azure-devices.net"
}
azure_iot_hub_provisioning = {
zone_name = "privatelink.azure-devices-provisioning.net"
}
azure_iot_hub_update = {
zone_name = "privatelink.api.adu.microsoft.com"
}
azure_iot_central = {
zone_name = "privatelink.azureiotcentral.com"
}
azure_digital_twins = {
zone_name = "privatelink.digitaltwins.azure.net"
}
azure_media_services_delivery = {
zone_name = "privatelink.media.azure.net"
}
azure_automation = {
zone_name = "privatelink.azure-automation.net"
}
azure_backup = {
zone_name = "privatelink.{regionCode}.backup.windowsazure.com"
}
azure_site_recovery = {
zone_name = "privatelink.siterecovery.windowsazure.com"
}
azure_monitor = {
zone_name = "privatelink.monitor.azure.com"
}
azure_log_analytics = {
zone_name = "privatelink.oms.opinsights.azure.com"
}
azure_log_analytics_data = {
zone_name = "privatelink.ods.opinsights.azure.com"
}
azure_monitor_agent = {
zone_name = "privatelink.agentsvc.azure-automation.net"
}
azure_purview_account = {
zone_name = "privatelink.purview.azure.com"
}
azure_purview_studio = {
zone_name = "privatelink.purviewstudio.azure.com"
}
azure_migration_service = {
zone_name = "privatelink.prod.migration.windowsazure.com"
}
azure_grafana = {
zone_name = "privatelink.grafana.azure.com"
}
azure_key_vault = {
zone_name = "privatelink.vaultcore.azure.net"
}
azure_managed_hsm = {
zone_name = "privatelink.managedhsm.azure.net"
}
azure_app_configuration = {
zone_name = "privatelink.azconfig.io"
}
azure_attestation = {
zone_name = "privatelink.attest.azure.net"
}
azure_search = {
zone_name = "privatelink.search.windows.net"
}
azure_app_service = {
zone_name = "privatelink.azurewebsites.net"
}
azure_app_service_scm = {
zone_name = "scm.privatelink.azurewebsites.net"
}
azure_signalr_service = {
zone_name = "privatelink.service.signalr.net"
}
azure_static_web_apps = {
zone_name = "privatelink.azurestaticapps.net"
}
azure_synapse_sql = {
zone_name = "privatelink.sql.azuresynapse.net"
}
azure_synapse_dev = {
zone_name = "privatelink.dev.azuresynapse.net"
}
azure_web_pubsub = {
zone_name = "privatelink.webpubsub.azure.com"
}
}
description = <<DESCRIPTION
A set of Private Link Private DNS Zones to create. Each element must be a valid DNS zone name.
**NOTE:**
- Private Link Private DNS Zones that have `{{regionCode}}` in the name will be replaced with the Geo Code of the Region you specified in the `location` variable, if available, as documented [here](https://learn.microsoft.com/azure/private-link/private-endpoint-dns#:~:text=Note-,In%20the%20above%20text%2C%20%7BregionCode%7D%20refers%20to%20the%20region%20code%20(for%20example%2C%20eus%20for%20East%20US%20and%20ne%20for%20North%20Europe).%20Refer%20to%20the%20following%20lists%20for%20regions%20codes%3A,-All%20public%20clouds).
- e.g. If `UK South` or `uksouth` was specified as the region in the `location` variable, `{{regionCode}}` would be replaced with `uks` in the Private DNS Zone name.
- Private Link Private DNS Zones that have `{{regionName}}` in the name will be replaced with the short name of the Region you specified in the `location` variable, if available, as documented [here](https://learn.microsoft.com/azure/private-link/private-endpoint-dns).
- e.g. If `UK South` or `uksouth` was specified as the region in the `location` variable, `{{regionName}}` would be replaced with `uksouth` in the Private DNS Zone name.
**IMPORTANT:**
The folowing Private Link Private DNS Zones have been removed from the default value for this variable as they require additional placeholders to be replaced that will only be known by the caller of the module at runtime and cannot be determined by the module itself. If you have a requirement to create these Private Link Private DNS Zones, you must provide the full list of Private Link Private DNS Zones to create as a set in the `private_link_private_dns_zones` variable, using the default value as a reference. The list of Private Link Private DNS Zones that have been removed are:
- `{subzone}.privatelink.{regionName}.azmk8s.io`
- `privatelink.{dnsPrefix}.database.windows.net`
- `privatelink.{partitionId}.azurestaticapps.net`
We have also removed the following Private Link Private DNS Zones from the default value for this variable as they should only be created and used with in specific scenarios:
- `privatelink.azure.com`
DESCRIPTION
nullable = false
}
variable "resource_group_creation_enabled" {
type = bool
default = true
description = "This variable controls whether or not the resource group should be created. If set to false, the resource group must be created elsewhere and the resource group name must be provided to the module. If set to true, the resource group will be created by the module using the name provided in `resource_group_name`."
nullable = false
}
variable "resource_group_role_assignments" {
type = map(object({
role_definition_id_or_name = string
principal_id = string
description = optional(string, null)
skip_service_principal_aad_check = optional(bool, false)
condition = optional(string, null)
condition_version = optional(string, null)
delegated_managed_identity_resource_id = optional(string, null)
}))
default = {}
description = <<DESCRIPTION
A map of role assignments to create on the Resource Group. The map key is deliberately arbitrary to avoid issues where map keys maybe unknown at plan time.
- `role_definition_id_or_name` - The ID or name of the role definition to assign to the principal.
- `principal_id` - The ID of the principal to assign the role to.
- `description` - The description of the role assignment.
- `skip_service_principal_aad_check` - If set to true, skips the Azure Active Directory check for the service principal in the tenant. Defaults to false.
- `condition` - The condition which will be used to scope the role assignment.
- `condition_version` - The version of the condition syntax. Valid values are '2.0'.
> Note: only set `skip_service_principal_aad_check` to true if you are assigning a role to a service principal.
DESCRIPTION
nullable = false
}
variable "tags" {
type = map(string)
default = null
description = "(Optional) Tags of the resource."
}
variable "timeouts" {
type = object({
dns_zones = optional(object({
create = optional(string, "30m")
delete = optional(string, "30m")
update = optional(string, "30m")
read = optional(string, "5m")
}), {}
)
vnet_links = optional(object({
create = optional(string, "30m")
delete = optional(string, "30m")
update = optional(string, "30m")
read = optional(string, "5m")
}), {}
)
})
default = {}
description = <<DESCRIPTION
A map of timeouts objects, per resource type, to apply to the creation and destruction of resources the following resources:
- `dns_zones` - (Optional) The timeouts for DNS Zones.
- `vnet_links` - (Optional) The timeouts for DNS Zones Virtual Network Links.
Each timeout object has the following optional attributes:
- `create` - (Optional) The timeout for creating the resource. Defaults to `5m` apart from policy assignments, where this is set to `15m`.
- `delete` - (Optional) The timeout for deleting the resource. Defaults to `5m`.
- `update` - (Optional) The timeout for updating the resource. Defaults to `5m`.
- `read` - (Optional) The timeout for reading the resource. Defaults to `5m`.
DESCRIPTION
}
variable "virtual_network_resource_ids_to_link_to" {
type = map(object({
vnet_resource_id = optional(string, null)
}))
default = {}
description = <<DESCRIPTION
A map of objects of Virtual Network Resource IDs to link to the Private Link Private DNS Zones created. The map key is deliberately arbitrary to avoid issues where map keys maybe unknown at plan time.
- `vnet_resource_id` - (Optional) The resource ID of the Virtual Network to link to the Private Link Private DNS Zones created to.
DESCRIPTION
nullable = false
}