generated from equinix-labs/terraform-equinix-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
200 lines (176 loc) · 5.95 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
variable "fabric_notification_users" {
type = list(string)
description = "A list of email addresses used for sending connection update notifications."
validation {
condition = length(var.fabric_notification_users) > 0
error_message = "Notification list cannot be empty."
}
}
variable "fabric_connection_name" {
type = string
description = <<EOF
Name of the connection resource that will be created. It will be auto-generated if not
specified.
EOF
default = ""
}
variable "fabric_destination_metro_code" {
type = string
description = <<EOF
Destination Metro code where the connection will be created. If you do not know the code,
'fabric_destination_metro_name' can be use instead.
EOF
default = ""
validation {
condition = (
var.fabric_destination_metro_code == "" ? true : can(regex("^[A-Z]{2}$", var.fabric_destination_metro_code))
)
error_message = "Valid metro code consits of two capital leters, i.e. 'FR', 'SV', 'DC'."
}
}
variable "fabric_destination_metro_name" {
type = string
description = <<EOF
Only required in the absence of 'fabric_destination_metro_code'. Metro name where the connection
will be created, i.e. 'Frankfurt', 'Silicon Valley', 'Ashburn'. One of
'fabric_destination_metro_code', 'fabric_destination_metro_name' must be provided.
EOF
default = ""
}
variable "network_edge_device_id" {
type = string
description = <<EOF
Unique identifier of the Network Edge virtual device from which the connection would
originate.
EOF
default = ""
}
variable "network_edge_device_interface_id" {
type = number
description = <<EOF
Applicable with 'network_edge_device_id', identifier of network interface on a given device, used
for a connection. If not specified then first available interface will be selected.
EOF
default = 0
}
variable "network_edge_configure_bgp" {
type = bool
description = <<EOF
Applicable with 'network_edge_device_id' and 'alicloud_configure_bgp'. Creation and management of
Equinix Network Edge BGP peering configurations. It requires that 'alicloud_configure_bgp' is set
to true.
EOF
default = false
}
variable "fabric_port_name" {
type = string
description = <<EOF
Name of the buyer's port from which the connection would originate. One of 'fabric_port_name',
'network_edge_device_id' or 'fabric_service_token_id' is required.
EOF
default = ""
}
variable "fabric_vlan_stag" {
type = number
description = <<EOF
S-Tag/Outer-Tag of the primary connection - a numeric character ranging from 2 - 4094. Required if
'port_name' is specified.
EOF
default = 0
}
variable "fabric_service_token_id" {
type = string
description = <<EOF
Unique Equinix Fabric key shared with you by a provider that grants you authorization to use
their interconnection asset from which the connection would originate.
EOF
default = ""
}
variable "fabric_speed" {
type = number
description = <<EOF
Speed/Bandwidth in Mbps to be allocated to the connection. If not specified, it will be used the
minimum bandwidth available for the Alibaba service profile.
EOF
default = 0
validation {
condition = contains([0, 50, 200, 500, 1000], var.fabric_speed)
error_message = "Valid values are (0, 50, 200, 500, 1000)."
}
}
variable "fabric_purchase_order_number" {
type = string
description = "Connection's purchase order number to reflect on the invoice."
default = ""
}
variable "alicloud_region" {
type = string
description = <<EOF
The name of the region to select, such as eu-central-1. Required if the region is not
configured in the provider.
EOF
default = ""
}
variable "alicloud_account_id" {
type = string
description = "Your Alibaba account ID. Required in Equinix Fabric as authorization key."
}
variable "alicloud_access_key" {
type = string
description = <<EOF
This is the Alicloud access key. It must be provided, but it can also be sourced from the
ALICLOUD_ACCESS_KEY environment variable.
EOF
default = ""
}
variable "alicloud_secret_key" {
type = string
description = <<EOF
This is the Alicloud secret key. It must be provided, but it can also be sourced from the
ALICLOUD_SECRET_KEY environment variable.
EOF
default = ""
}
variable "alicloud_express_connect_bgp_customer_peer_ip" {
type = string
description = <<EOF
The BGP IPv4 address (in CIDR notation) for the router on the Equinix end of the BGP
session, e.g. `169.0.0.1/29`. You can enter a long subnet mask because only two IP
addresses are required. For subnets with more than 2 IPs, i.e. /30 /29 /28, avoid use
first and last ip, e.g.: subnet `10.0.0.0/30` first IP is 10.0.0.0 and last 10.0.0.3,
then you should use 10.0.0.1/30 for customer peer ip, and 10.0.0.2 for cloud peer ip.
EOF
default = "10.0.0.17/30"
}
variable "alicloud_express_connect_bgp_cloud_peer_ip" {
type = string
description = <<EOF
The BGP IPv4 address for Alibabas's end of the BGP session. It must belong to the
`alicloud_express_connect_bgp_customer_peer_ip` subnet
EOF
default = "10.0.0.18"
}
variable "alicloud_express_connect_bgp_customer_asn" {
type = number
description = <<EOF
The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration on the Equinix
end of the BGP session.
EOF
default = 65000
}
variable "alicloud_express_connect_bgp_auth_key" {
type = string
description = <<EOF
The key for BGP MD5 authentication. Only applicable if your system requires MD5
authentication.
EOF
default = ""
}
variable "alicloud_configure_bgp" {
type = bool
description = <<EOF
Creation and management of an Alibaba BGP group and a BGP peer.
See the [configure bgp](https://www.alibabacloud.com/help/en/express-connect/latest/configure-bgp) guide for more details.
EOF
default = true
}