-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathvariables.tf
71 lines (64 loc) · 2.66 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
variable "starter_locations" {
type = list(string)
description = "The default for Azure resources. (e.g 'uksouth')"
validation {
condition = length(var.starter_locations) > 0
error_message = "You must provide at least one starter location region."
}
validation {
condition = var.connectivity_type == "none" || ((length(var.virtual_wan_virtual_hubs) <= length(var.starter_locations)) || (length(var.hub_and_spoke_vnet_virtual_networks) <= length(var.starter_locations)))
error_message = "The number of regions supplied in `starter_locations` must match the number of regions specified for connectivity."
}
}
variable "subscription_id_connectivity" {
type = string
description = "value of the subscription id for the Connectivity subscription"
validation {
condition = can(regex("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$", var.subscription_id_connectivity))
error_message = "You must provide a valid GUID for the Connectivity subscription ID."
}
}
variable "subscription_id_identity" {
type = string
description = "value of the subscription id for the Identity subscription"
validation {
condition = can(regex("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$", var.subscription_id_identity))
error_message = "You must provide a valid GUID for the Identity subscription ID."
}
}
variable "subscription_id_management" {
type = string
description = "value of the subscription id for the Management subscription"
validation {
condition = can(regex("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$", var.subscription_id_management))
error_message = "You must provide a valid GUID for the Management subscription ID."
}
}
variable "root_parent_management_group_id" {
type = string
default = ""
description = "This is the id of the management group that the ALZ hierarchy will be nested under, will default to the Tenant Root Group"
}
variable "enable_telemetry" {
type = bool
default = true
description = "Flag to enable/disable telemetry"
}
variable "custom_replacements" {
type = object({
names = optional(map(string), {})
resource_group_identifiers = optional(map(string), {})
resource_identifiers = optional(map(string), {})
})
default = {
names = {}
resource_group_identifiers = {}
resource_identifiers = {}
}
description = "Custom replacements"
}
variable "tags" {
type = map(string)
default = null
description = "(Optional) Tags of the resource."
}