-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
219 lines (190 loc) · 7.11 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
variable "azure_bastion_nsg_list" {
default = {
"AllowHttpsInbound" = {
priority = "120", direction = "Inbound", source_port = "*", destination_port = "443", access = "Allow",
protocol = "Tcp", source_address_prefix = "Internet", destination_address_prefix = "*"
},
"AllowGatewayManagerInbound" = {
priority = "130", direction = "Inbound", source_port = "*", destination_port = "443", access = "Allow",
protocol = "Tcp", source_address_prefix = "GatewayManager", destination_address_prefix = "*"
},
"AllowAzureLoadBalancerInbound" = {
priority = "140", direction = "Inbound", source_port = "*", destination_port = "443", access = "Allow",
protocol = "Tcp", source_address_prefix = "AzureLoadBalancer", destination_address_prefix = "*"
},
"AllowBastionHostCommunication1" = {
priority = "150", direction = "Inbound", source_port = "*", destination_port = "5701", access = "Allow",
protocol = "Tcp", source_address_prefix = "VirtualNetwork", destination_address_prefix = "VirtualNetwork"
},
"AllowBastionHostCommunication2" = {
priority = "155", direction = "Inbound", source_port = "*", destination_port = "80", access = "Allow",
protocol = "Tcp", source_address_prefix = "VirtualNetwork", destination_address_prefix = "VirtualNetwork"
},
"AllowSSHRDPOutbound1" = {
priority = "160", direction = "Outbound", source_port = "*", destination_port = "22", access = "Allow",
protocol = "Tcp", source_address_prefix = "*", destination_address_prefix = "VirtualNetwork"
},
"AllowSSHRDPOutbound2" = {
priority = "165", direction = "Outbound", source_port = "*", destination_port = "3389", access = "Allow",
protocol = "Tcp", source_address_prefix = "*", destination_address_prefix = "VirtualNetwork"
},
"AllowAzureCloudOutbound2" = {
priority = "170", direction = "Outbound", source_port = "*", destination_port = "443", access = "Allow",
protocol = "Tcp", source_address_prefix = "*", destination_address_prefix = "AzureCloud"
},
"AllowAzureBastionCommunicationOutbound1" = {
priority = "180", direction = "Outbound", source_port = "*", destination_port = "5701", access = "Allow",
protocol = "Tcp", source_address_prefix = "VirtualNetwork", destination_address_prefix = "VirtualNetwork"
},
"AllowAzureBastionCommunicationOutbound2" = {
priority = "185", direction = "Outbound", source_port = "*", destination_port = "8080", access = "Allow",
protocol = "Tcp", source_address_prefix = "VirtualNetwork", destination_address_prefix = "VirtualNetwork"
},
"AllowGetSessionInformation" = {
priority = "190", direction = "Outbound", source_port = "*", destination_port = "80", access = "Allow",
protocol = "Tcp", source_address_prefix = "*", destination_address_prefix = "*"
},
}
description = "The Standard list of NSG rules needed to make a bastion work"
}
variable "bastion_host_ipconfig_name" {
type = string
description = "The IP Configuration name for the Azure Bastion"
default = null
}
variable "bastion_host_name" {
type = string
description = "The name for the Bastion host in the portal"
}
variable "bastion_nsg_location" {
type = string
description = "The location of the bastion nsg"
default = null
}
variable "bastion_nsg_name" {
type = string
description = "The name for the NSG to be created with the AzureBastionSubnet"
default = null
}
variable "bastion_nsg_rg_name" {
type = string
description = "The resource group name which the NSG should be placed in"
default = null
}
variable "bastion_pip_allocation_method" {
type = string
default = "Static"
description = "The allocation method for the Public IP, default is Static"
}
variable "bastion_pip_location" {
type = string
description = "The location for the Bastion Public IP, default is UK South"
default = null
}
variable "bastion_pip_name" {
type = string
description = "The name for the Bastion Public IP"
default = null
}
variable "bastion_pip_rg_name" {
type = string
description = "The resource group name for Bastion Public IP"
default = null
}
variable "bastion_pip_sku" {
type = string
default = "Standard"
description = "The SKU for the Bastion Public IP, default is Standard"
}
variable "bastion_sku" {
type = string
description = "The SKU of the bastion, default is Basic"
default = "Basic"
}
variable "bastion_subnet_name" {
default = "AzureBastionSubnet"
type = string
description = "The name of the Azure Bastion Subnet - note, this is a static value and should not be changed"
}
variable "bastion_subnet_range" {
type = string
description = "The IP Range for the Bastion Subnet - Note, Minimum is a /27"
default = null
}
variable "bastion_subnet_target_vnet_name" {
type = string
description = "The name of the VNet the bastion is intended to join"
default = null
}
variable "bastion_subnet_target_vnet_rg_name" {
type = string
description = "The name of the resource group that the VNet can be found in"
default = null
}
variable "copy_paste_enabled" {
type = bool
description = "Whether copy paste is enabled, defaults to true"
default = true
}
variable "create_bastion_nsg" {
type = bool
description = "Whether a NSG should be created for the Bastion, defaults to true"
default = true
}
variable "create_bastion_nsg_rules" {
type = bool
description = "Whether the NSG rules for a bastion should be made, default is true"
default = true
}
variable "create_bastion_subnet" {
type = bool
description = "Whether this module should create the bastion subnet for the user, defaults to true"
default = true
}
variable "external_subnet_id" {
description = "The ID of the external subnet if not created by this module."
type = string
default = null
}
variable "file_copy_enabled" {
type = bool
description = "Whether file copy is enabled"
default = null
}
variable "ip_connect_enabled" {
type = bool
description = "Whether the IP connect feature is enabled"
default = null
}
variable "location" {
type = string
description = "The location for the bastion host, default is UK South"
}
variable "rg_name" {
type = string
description = "The resource group name for the Bastion resource"
}
variable "scale_units" {
type = number
description = "The number of scale units, default is 2"
default = 2
}
variable "shareable_link_enabled" {
type = bool
description = "Whether the shareable link is enabled"
default = null
}
variable "tags" {
description = "The default tags to be assigned"
type = map(string)
}
variable "tunneling_enabled" {
type = bool
description = "Whether the tunneling feature is enable"
default = null
}
variable "virtual_network_id" {
type = string
description = "The ID of the virtual network that the bastion should be attached to when in Developer SKU"
default = null
}