-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
192 lines (162 loc) · 4.76 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
# Required service variables
variable "service_name" {
description = "Desired name for the provisioned resources"
type = string
}
variable "service_environment" {
description = "Desired environment for the service collection of provisioned resources"
type = string
}
variable "service_deployment" {
description = "Desired deployment identifier of the service collection of provisioned resources"
type = string
}
variable "service_location" {
description = "Desired location for each service environment"
type = string
}
# Required resource variables
variable "resource_address_space" {
description = "Required address space of the network"
type = string
}
variable "resource_dns_servers" {
description = "Desired DNS servers for the provisioned resources"
type = list(any)
default = null
}
variable "resource_name" {
description = "Desired name for the provisioned resources"
type = string
}
variable "resource_image" {
description = "Desired image for the provisioned resources"
type = string
default = null
}
variable "resource_image_group" {
description = "Resource group name of image for the provisioned resources"
type = string
default = null
}
variable "resource_instance_count" {
description = "Desired number of the provisioned resources for each service environment"
type = string
default = 1
}
variable "resource_instance_size" {
description = "Desired size for the provisioned resources for each service"
type = string
}
variable "operating_system_platform" {
description = "Desired OS for the provisioned resources"
type = string
}
# Defined resource variables
variable "platform_location_fault_domain" {
description = "Number of fault domains in the location"
type = map(string)
default = {
"UK West" = 2
"North Europe" = 2
"West Europe" = 2
"North Central US" = 2
}
}
variable "platform_location_az" {
description = "Number of availability zones in the location"
type = map(string)
default = {
"UK South" = 3
"UK West" = 0
"North Europe" = 3
"West Europe" = 3
"North Central US" = 0
}
}
variable "resource_vm_sku" {
description = "Desired size for the provisioned resources"
type = string
default = null
}
variable "resource_data_disk_count" {
description = "Desired size for the provisioned resources for each service"
type = number
default = 0
}
variable "resource_data_disk_size" {
description = "Desired disk size for the provisioned data disk resources"
type = number
default = 32
}
variable "resource_disk_size" {
description = "Desired disk size for the provisioned resources"
type = string
default = "32"
}
variable "resource_network_interface_count" {
description = "Desired number of network interfaces"
type = string
default = 1
}
variable "admin_username" {
description = "Desired username for the provisioned resources"
type = string
default = "wesley"
}
variable "provision_public_load_balancer" {
description = "Whether to provision a public load balancer"
type = bool
default = false
}
variable "provision_key_vault" {
description = "Whether to provision a key vault"
type = bool
default = true
}
variable "resource_key_vault_access_object_ids" {
description = "The object IDs to have access to the key vault"
type = list(string)
default = [
"27cf12d2-6428-4882-a6ff-ca3cf4aef391"
]
}
variable "resource_traffic_manager_profile_name" {
description = "Traffic manager profile name"
type = string
default = null
}
variable "resource_traffic_manager_resource_group_name" {
description = "Traffic manager resource group name"
type = string
default = null
}
variable "resource_private_ip_initial_address" {
description = "The initial IP address available for static assignment"
type = string
default = 4
}
variable "resource_network_role" {
description = "The network type for peering"
type = string
}
variable "resource_shutdown_enabled" {
description = "Whether to shutdown the VMs daily"
type = bool
default = false
}
variable "daily_shutdown_time" {
description = "The shutdown time for the VMs (Must match the format HHmm where HH is 00-23 and mm is 00-59 (e.g. 0930, 2300, etc.))"
type = string
default = "2300"
}
variable "provision_scale_set" {
description = "Whether to provision a key vault"
type = bool
default = null
}
variable "ephemeral_disk_enabled" {
description = "Whether to use a ephemeral OS disk the provisioned resources"
type = bool
default = null
}