-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
302 lines (254 loc) · 6.89 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
variable "metadata" {
description = "Metadata for the platform"
type = object({
environment = optional(string, "")
team = optional(string, "")
})
default = {}
}
variable "create_addons" {
description = "Create the platform addons. if set to false, no addons will be created"
type = bool
default = true
}
variable "name" {
description = "The name of the platform, a timestamp will be appended to this name to make the stack_name. If not provided, the name of the directory will be used."
type = string
default = ""
}
variable "tags" {
description = "Default tags to apply to all resources"
type = map(string)
default = {}
}
# TODO: Split out into dedicated variables
variable "vpc" {
description = "Map of VPC configurations"
type = any
default = {}
}
# TODO: Split out into dedicated variables
variable "eks" {
description = "Map of EKS configurations"
type = any
default = {}
}
variable "cluster_admins" {
description = "Map of IAM roles to add as cluster admins. Only exact matching role names are returned"
type = map(object({
role_name = string
kubernetes_groups = optional(list(string))
}))
default = {}
}
################################################################################
# Integrations
variable "base_domain" {
description = "Base domain for the platform, used for ingress and ACM certificates"
type = string
default = "test"
}
variable "enable_acm_certificate" {
description = "Enable ACM certificate"
type = bool
default = false
}
variable "acm_certificate" {
description = "ACM certificate configuration. If wildcard_certificates is true, all domains will include a wildcard prefix."
type = object({
domain_name = optional(string) # Overrides base_domain
subject_alternative_names = optional(list(string), [])
wildcard_certificates = optional(bool, false)
wait_for_validation = optional(bool, false)
})
default = {}
}
variable "enable_okta" {
description = "Enable Okta integration"
type = bool
default = false
}
variable "okta" {
description = "Okta configurations"
type = object({
base_url = optional(string, "")
secrets_manager_secret_name = optional(string, "")
kubernetes_secret_name = optional(string, "okta")
})
default = {}
}
variable "enable_pagerduty" {
description = "Enable PagerDuty integration"
type = bool
default = false
}
variable "pagerduty" {
description = "PagerDuty configurations"
type = object({
secrets_manager_secret_name = optional(string, "")
kubernetes_secret_name = optional(string, "pagerduty")
})
default = {}
}
variable "enable_slack" {
description = "Enable Slack integration"
type = bool
default = false
}
variable "slack" {
description = "Slack configurations"
type = object({
secrets_manager_secret_name = optional(string, "")
kubernetes_secret_name = optional(string, "slack")
})
default = {}
}
################################################################################
# Core Addons - Installed by default
variable "karpenter" {
description = "Karpenter configurations"
type = any
default = {}
}
variable "enable_metrics_server" {
description = "Enable Metrics Server"
type = bool
default = true
}
variable "metrics_server" {
description = "Metrics Server configurations"
type = any
default = {}
}
variable "enable_aws_load_balancer_controller" {
description = "Enable AWS Load Balancer Controller"
type = bool
default = true
}
variable "aws_load_balancer_controller" {
description = "AWS Load Balancer Controller configurations"
type = any
default = {}
}
variable "enable_external_dns" {
description = "Enable External DNS"
type = bool
default = true
}
variable "external_dns" {
description = "External DNS configurations"
type = any
default = {}
}
variable "enable_external_secrets" {
description = "Enable External Secrets"
type = bool
default = true
}
variable "external_secrets" {
description = "External Secrets configurations"
type = any
default = {}
}
variable "enable_reloader" {
description = "Enable Reloader"
type = bool
default = true
}
variable "reloader" {
description = "Reloader configurations"
type = any
default = {}
}
################################################################################
# Logging and Monitoring
variable "enable_fargate_fluentbit" {
description = "Enable Fargate Fluentbit"
type = bool
default = true
}
variable "fargate_fluentbit" {
description = "Fargate Fluentbit configurations"
type = any
default = {}
}
variable "enable_fluent_operator" {
description = "Enable fluent operator"
type = bool
default = true
}
variable "fluent_operator" {
description = "Fluent configurations"
type = any
default = {}
}
variable "fluent_log_annotation" {
description = "Pod Annotation required to enable fluent bit logging. Setting name to empty string will disable annotation requirement."
type = object({
name = optional(string, "fluentbit.io/include")
value = optional(string, "true")
})
default = {}
}
variable "fluent_cloudwatch_retention_in_days" {
description = "Number of days to keep logs in cloudwatch"
type = string
default = "7"
}
variable "enable_prometheus_stack" {
description = "Enable Prometheus stack"
type = bool
default = true
}
variable "prometheus_stack" {
description = "Prometheus stack configurations"
type = any
default = {}
}
variable "enable_amp" {
description = "Enable AWS Managed Prometheus"
type = bool
default = false
}
variable "enable_grafana" {
description = "Enable Grafana"
type = bool
default = true
}
variable "grafana" {
description = "Grafana configurations, used to override default configurations"
type = any
default = {}
}
################################################################################
# Additional Addons - Not installed by default
variable "enable_cert_manager" {
description = "Enable Cert Manager"
type = bool
default = false
}
variable "cert_manager" {
description = "Cert Manager configurations"
type = any
default = {}
}
variable "enable_ingress_nginx" {
description = "Enable Ingress Nginx"
type = bool
default = false
}
variable "ingress_nginx" {
description = "Ingress Nginx configurations"
type = any
default = {}
}
variable "enable_downscaler" {
description = "Enable Downscaler"
type = bool
default = false
}
variable "downscaler" {
description = "Downscaler configurations"
type = any
default = {}
}