-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
66 lines (61 loc) · 2.14 KB
/
Copy pathvariables.tf
File metadata and controls
66 lines (61 loc) · 2.14 KB
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
variable "name" {
description = "Base name used for local network gateways and VPN connections."
type = string
}
variable "resource_group_name" {
description = "Resource group name used for local network gateways and VPN connections."
type = string
}
variable "location" {
description = "Azure region for local network gateways and VPN connections."
type = string
}
variable "local_network_gateways" {
description = "Map of local network gateways keyed by logical name."
type = map(object({
name = optional(string)
gateway_address = string
address_space = list(string)
bgp_settings = optional(object({
asn = optional(number)
bgp_peering_address = optional(string)
peer_weight = optional(number)
}))
}))
}
variable "vpn_connections" {
description = "Map of VPN connections keyed by logical name."
type = map(object({
name = optional(string)
type = optional(string, "IPsec")
virtual_network_gateway_id = string
local_network_gateway_key = string
shared_key = optional(string)
enable_bgp = optional(bool, false)
connection_mode = optional(string)
connection_protocol = optional(string)
dpd_timeout_seconds = optional(number)
local_azure_ip_address_enabled = optional(bool)
routing_weight = optional(number)
use_policy_based_traffic_selectors = optional(bool, false)
ipsec_policy = optional(object({
dh_group = string
ike_encryption = string
ike_integrity = string
ipsec_encryption = string
ipsec_integrity = string
pfs_group = string
sa_datasize = number
sa_lifetime = number
}))
traffic_selector_policies = optional(list(object({
local_address_cidrs = list(string)
remote_address_cidrs = list(string)
})), [])
}))
}
variable "tags" {
description = "Resource tags."
type = map(string)
default = {}
}