generated from equinix-labs/terraform-equinix-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvariables.tf
211 lines (182 loc) · 6.3 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
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 = "Name of the connection resource that will be created. It will be auto-generated if not specified."
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 = "Unique identifier of the Network Edge virtual device from which the connection would originate."
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 'aws_dx_create_vif'. Creation and management of Equinix Network Edge BGP
peering configurations.
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 AWS service profile.
EOF
default = 0
validation {
condition = contains([0, 50, 100, 200, 300, 400, 500, 1000, 2000, 5000, 10000], var.fabric_speed)
error_message = "Valid values are (50, 100, 200, 300, 400, 500, 1000, 2000, 5000, 10000)."
}
}
variable "fabric_purchase_order_number" {
type = string
description = "Connection's purchase order number to reflect on the invoice."
default = ""
}
variable "aws_account_id" {
type = string
description = "Your AWS account ID. Required in Equinix Fabric as authorization key."
}
variable "aws_dx_create_vif" {
type = bool
description = "Create a DX Private virtual Interface."
default = false
}
variable "aws_dx_vif_name" {
type = string
description = "The name for the virtual interface. It will be auto-generated if not specified."
default = ""
}
variable "aws_dx_create_vgw" {
type = bool
description = "Create a Virtual Private Gateway."
default = false
}
variable "aws_dx_vgw_id" {
type = string
description = <<EOF
If 'aws_dx_create_vif' is true but you already have an existing VGW you can left 'aws_dx_create_vgw' false
and set your VGW id instead.
EOF
default = ""
}
variable "aws_vpc_id" {
type = string
description = <<EOF
The ID of the VPC to connect with the AWS VGW. Applicable if 'aws_dx_create_vgw' is true. If not specified 'Default'
VPC will be used (If applicable it will fail if there is no 'Default' VPC for the account in the selected region).
EOF
default = ""
}
variable "aws_vpn_gateway_name" {
type = string
description = "The name for the Virtual Private Gateway. It will be auto-generated if not specified."
default = ""
}
variable "aws_dx_vif_address_family" {
type = string
description = "The address family for the BGP peer. ipv4 or ipv6"
default = "ipv4"
validation {
condition = contains(["ipv4", "ipv6"], var.aws_dx_vif_address_family)
error_message = "Valid values are (ipv4, ipv6)."
}
}
variable "aws_dx_vif_customer_asn" {
type = string
description = "The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration on customer side."
default = "65000"
}
variable "aws_dx_vif_amazon_address" {
type = string
description = "The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers."
default = "169.254.0.1/30"
}
variable "aws_dx_vif_customer_address" {
type = string
description = "The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers."
default = "169.254.0.2/30"
}
variable "aws_dx_mtu_size" {
type = number
description = <<EOF
The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over
the connection. The MTU of a virtual private interface can be either 1500 or 9001 (jumbo frames). Default is 1500.
EOF
default = 1500
}
variable "aws_dx_bgp_auth_key" {
type = string
description = "The authentication key for BGP configuration."
default = ""
}
variable "aws_tags" {
type = map(string)
description = "Tags for AWS resources."
default = {
Terraform = "true"
}
}