-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
193 lines (160 loc) · 5.69 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
################################################################################
# VGS vars
################################################################################
variable "infra_environment" {
description = "VGS infra environment: dev|prod etc"
type = string
}
variable "deployment_environment" {
description = "VGS deployment environment: vault|genpop"
type = string
}
variable "data_environment" {
description = "VGS data environment: sandbox|live etc"
type = string
}
variable "service" {
type = string
}
variable "product" {
type = string
}
variable "team" {
type = string
}
variable "tenant" {
type = string
}
variable "create" {
description = "Controls if resources should be created (affects nearly all resources)"
type = bool
default = true
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
################################################################################
# Accelerator
################################################################################
variable "name" {
description = "The name of the accelerator"
type = string
default = ""
}
variable "ip_address_type" {
description = "The value for the address type. Defaults to `IPV4`. Valid values: `IPV4`, `DUAL_STACK`"
type = string
default = "IPV4"
}
variable "ip_addresses" {
description = "The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses"
type = list(string)
default = []
}
variable "enabled" {
description = "Indicates whether the accelerator is enabled. Defaults to `true`. Valid values: `true`, `false`"
type = bool
default = true
}
variable "flow_logs_enabled" {
description = "Indicates whether flow logs are enabled. Defaults to `false`"
type = bool
default = false
}
variable "flow_logs_s3_bucket" {
description = "The name of the Amazon S3 bucket for the flow logs. Required if `flow_logs_enabled` is `true`"
type = string
default = null
}
variable "flow_logs_s3_prefix" {
description = "The prefix for the location in the Amazon S3 bucket for the flow logs. Required if `flow_logs_enabled` is `true`"
type = string
default = null
}
################################################################################
# Listener(s)
################################################################################
variable "create_listeners" {
description = "Controls if listeners should be created (affects only listeners)"
type = bool
default = true
}
variable "listeners_timeouts" {
description = "Create, update, and delete timeout configurations for the listeners"
type = map(string)
default = {}
}
################################################################################
# Endpoing Group(s)
################################################################################
# Endpoint groups are nested with the listener defintion
variable "endpoint_groups_timeouts" {
description = "Create, update, and delete timeout configurations for the endpoint groups"
type = map(string)
default = {}
}
variable "endpoint_groups" {
description = "Map of endpoint groups configurations"
type = map(object({
endpoints = list(object({
endpoint_id = string
weight = number
client_ip_preservation_enabled = optional(bool)
health_check_port = optional(number)
health_check_protocol = optional(string)
health_check_path = optional(string)
health_check_interval_seconds = optional(number)
threshold_count = optional(number)
port_override = optional(map(number))
}))
traffic_dial_percentage = number
client_ip_preservation_enabled = optional(bool)
health_check_port = optional(number)
health_check_protocol = optional(string)
health_check_path = optional(string)
health_check_interval_seconds = optional(number)
threshold_count = optional(number)
port_override = optional(map(number))
}))
}
variable "listener_ports" {
description = "Map of listener ports (from_port to to_port)"
type = map(number)
}
variable "port_override" {
description = "Map of port overrides (listener_port to endpoint_port)"
type = map(number)
default = {}
}
variable "client_ip_preservation_enabled" {
description = "Indicates whether client IP preservation is enabled for the endpoint group"
type = bool
default = true
}
variable "health_check_port" {
description = "The port that AWS Global Accelerator uses to check the health of endpoints in this endpoint group"
type = number
default = null
}
variable "health_check_protocol" {
description = "The protocol that AWS Global Accelerator uses to check the health of endpoints in this endpoint group"
type = string
default = null
}
variable "health_check_path" {
description = "The path that AWS Global Accelerator uses to check the health of endpoints in this endpoint group"
type = string
default = null
}
variable "health_check_interval_seconds" {
description = "The time between each health check for an endpoint"
type = number
default = null
}
variable "threshold_count" {
description = "The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy"
type = number
default = null
}