This repository has been archived by the owner on Jun 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
133 lines (108 loc) · 4.94 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
variable "resource_group_name" {
description = "A container that holds related resources for an Azure solution"
default = ""
}
variable "location" {
description = "The location/region to keep all your network resources. To get the list of all locations with table format from azure cli, run 'az account list-locations -o table'"
default = ""
}
variable "virtual_network_name" {
description = "The name of the virtual network"
default = ""
}
variable "subnet_name" {
description = "The name of the subnet to use in VM scale set"
default = ""
}
variable "vpn_gateway_name" {
description = "The name of the Virtual Network Gateway"
default = ""
}
variable "public_ip_allocation_method" {
description = "Defines the allocation method for this IP address. Possible values are Static or Dynamic. Defaults to Dynamic"
default = "Dynamic"
}
variable "public_ip_sku" {
description = "The SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Basic"
default = "Basic"
}
variable "gateway_type" {
description = "The type of the Virtual Network Gateway. Valid options are Vpn or ExpressRoute"
default = "Vpn"
}
variable "vpn_type" {
description = "The routing type of the Virtual Network Gateway. Valid options are RouteBased or PolicyBased. Defaults to RouteBased"
default = "RouteBased"
}
variable "vpn_gw_sku" {
description = "Configuration of the size and capacity of the virtual network gateway. Valid options are Basic, VpnGw1, VpnGw2, VpnGw3, VpnGw4,VpnGw5, VpnGw1AZ, VpnGw2AZ, VpnGw3AZ,VpnGw4AZ and VpnGw5AZ and depend on the type, vpn_type and generation arguments"
default = "VpnGw1"
}
variable "expressroute_sku" {
description = "Configuration of the size and capacity of the virtual network gateway for ExpressRoute type. Valid options are Standard, HighPerformance, UltraPerformance, ErGw1AZ, ErGw2AZ, ErGw3AZ and depend on the type, vpn_type and generation arguments"
default = "Standard"
}
variable "vpn_gw_generation" {
description = "The Generation of the Virtual Network gateway. Possible values include Generation1, Generation2 or None"
default = "Generation1"
}
variable "enable_active_active" {
description = "If true, an active-active Virtual Network Gateway will be created. An active-active gateway requires a HighPerformance or an UltraPerformance sku. If false, an active-standby gateway will be created. Defaults to false."
default = false
}
variable "enable_bgp" {
description = "If true, BGP (Border Gateway Protocol) will be enabled for this Virtual Network Gateway. Defaults to false"
default = false
}
variable "bgp_asn_number" {
description = "The Autonomous System Number (ASN) to use as part of the BGP"
default = "65515"
}
variable "bgp_peering_address" {
description = "The BGP peer IP address of the virtual network gateway. This address is needed to configure the created gateway as a BGP Peer on the on-premises VPN devices. The IP address must be part of the subnet of the Virtual Network Gateway."
default = ""
}
variable "bgp_peer_weight" {
description = "The weight added to routes which have been learned through BGP peering. Valid values can be between 0 and 100"
default = ""
}
variable "vpn_client_configuration" {
type = object({ address_space = string, certificate = string, vpn_client_protocols = list(string) })
description = "Virtual Network Gateway client configuration to accept IPSec point-to-site connections"
default = null
}
variable "local_networks" {
type = list(object({ local_gw_name = string, local_gateway_address = string, local_address_space = list(string), shared_key = string }))
description = "List of local virtual network connections to connect to gateway"
default = []
}
variable "local_bgp_settings" {
type = list(object({ asn_number = number, peering_address = string, peer_weight = number }))
description = "Local Network Gateway's BGP speaker settings"
default = null
}
variable "gateway_connection_type" {
description = "The type of connection. Valid options are IPsec (Site-to-Site), ExpressRoute (ExpressRoute), and Vnet2Vnet (VNet-to-VNet)"
default = "IPsec"
}
variable "express_route_circuit_id" {
description = "The ID of the Express Route Circuit when creating an ExpressRoute connection"
default = null
}
variable "peer_virtual_network_gateway_id" {
description = "The ID of the peer virtual network gateway when creating a VNet-to-VNet connection"
default = null
}
variable "gateway_connection_protocol" {
description = "The IKE protocol version to use. Possible values are IKEv1 and IKEv2. Defaults to IKEv2"
default = "IKEv2"
}
variable "local_networks_ipsec_policy" {
description = "IPSec policy for local networks. Only a single policy can be defined for a connection."
default = null
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}