-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables-modules.tf
99 lines (96 loc) · 2.48 KB
/
variables-modules.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
## Provider-specific modules variables
## Copy to toplevel
variable "modules_defaults" {
description = "Configure AWS modules to install (defaults)"
type = object({
alb = object({
enabled = bool
ingressClass = string
})
cert-manager = object({
enabled = bool
hosted_zone_ids = list(string)
})
cluster-autoscaler = object({ enabled = bool })
ebs-csi = object({ enabled = bool })
ecr = object({ enabled = bool })
efs = object({
enabled = bool
file_system_id = string
})
external-dns = object({
enabled = bool
private = bool
hosted_zone_ids = list(string)
domain_filters = list(string)
})
kms = object({
enabled = bool
key_id = string
})
logging = object({ enabled = bool })
thanos = object({ enabled = bool })
velero = object({
enabled = bool
bucket_name = string
})
})
default = {
alb = {
enabled = true
ingressClass = "alb"
}
cert-manager = {
enabled = false
hosted_zone_ids = []
}
cluster-autoscaler = {
enabled = true
}
ebs-csi = {
enabled = true
}
ecr = {
enabled = false
}
efs = {
enabled = false
file_system_id = ""
}
external-dns = {
enabled = false
private = false
hosted_zone_ids = []
domain_filters = []
}
kms = {
enabled = false
key_id = ""
}
logging = {
enabled = true
}
thanos = {
enabled = false
}
velero = {
enabled = true
bucket_name = ""
}
}
}
locals {
register_modules = {
alb : local.modules.alb.enabled ? module.alb[0] : {}
cert-manager : local.modules.cert-manager.enabled ? module.cert-manager[0] : {}
cluster-autoscaler : local.modules.cluster-autoscaler.enabled ? module.cluster-autoscaler[0] : {}
ebs-csi : local.modules.ebs-csi.enabled ? module.ebs-csi[0] : {}
ecr : local.modules.ecr.enabled ? module.ecr[0] : {}
efs : local.modules.efs.enabled ? module.efs[0] : {}
external-dns : local.modules.external-dns.enabled ? module.external-dns[0] : {}
kms : local.modules.kms.enabled ? module.kms[0] : {}
logging : local.modules.logging.enabled ? module.logging[0] : {}
thanos : local.modules.thanos.enabled ? module.thanos[0] : {}
velero : local.modules.velero.enabled ? module.velero[0] : {}
}
}