-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaws_modules.tf
123 lines (100 loc) · 4.33 KB
/
aws_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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Must register all modules in locals.tf
resource "local_file" "debug-modules" {
count = var.dump_debug ? 1 : 0
filename = ".debug-eks-modules.json"
content = jsonencode(local.modules)
}
module "cluster-autoscaler" {
count = local.modules.cluster-autoscaler.enabled ? 1 : 0
source = "github.com/getupcloud/terraform-module-aws-eks-cluster-autoscaler?ref=v1.2"
cluster_name = module.cluster.cluster_id
cluster_oidc_issuer_url = module.cluster.cluster_oidc_issuer_url
}
module "ebs-csi" {
count = local.modules.ebs-csi.enabled ? 1 : 0
source = "github.com/getupcloud/terraform-module-aws-ebs-csi?ref=v0.1"
cluster_name = module.cluster.cluster_id
cluster_oidc_issuer_url = module.cluster.cluster_oidc_issuer_url
}
module "ecr" {
count = local.modules.ecr.enabled ? 1 : 0
source = "github.com/getupcloud/terraform-module-aws-ecr?ref=v1.1.0"
cluster_name = module.cluster.cluster_id
cluster_oidc_issuer_url = module.cluster.cluster_oidc_issuer_url
customer_name = var.customer_name
service_account_namespace = "flux-system"
service_account_name = "ecr-credentials-sync"
tags = var.tags
}
module "efs" {
count = local.modules.efs.enabled ? 1 : 0
source = "github.com/getupcloud/terraform-module-aws-efs?ref=v1.1"
cluster_name = module.cluster.cluster_id
cluster_oidc_issuer_url = module.cluster.cluster_oidc_issuer_url
}
module "velero" {
count = local.modules.velero.enabled ? 1 : 0
source = "github.com/getupcloud/terraform-module-aws-velero?ref=v1.8.1"
cluster_name = module.cluster.cluster_id
cluster_oidc_issuer_url = module.cluster.cluster_oidc_issuer_url
customer_name = var.customer_name
bucket_name = local.modules.velero.bucket_name
tags = var.tags
}
module "thanos" {
count = local.modules.thanos.enabled ? 1 : 0
source = "github.com/getupcloud/terraform-module-aws-thanos?ref=v1.1"
cluster_name = module.cluster.cluster_id
cluster_oidc_issuer_url = module.cluster.cluster_oidc_issuer_url
customer_name = var.customer_name
tags = var.tags
}
module "alb" {
count = local.modules.alb.enabled ? 1 : 0
source = "github.com/getupcloud/terraform-module-aws-alb?ref=v1.2"
cluster_name = module.cluster.cluster_id
cluster_oidc_issuer_url = module.cluster.cluster_oidc_issuer_url
customer_name = var.customer_name
tags = var.tags
}
module "cert-manager" {
count = local.modules.cert-manager.enabled ? 1 : 0
source = "github.com/getupcloud/terraform-module-aws-cert-manager?ref=v1.1.2"
cluster_name = module.cluster.cluster_id
customer_name = var.customer_name
hosted_zone_ids = local.modules.cert-manager.hosted_zone_ids
cluster_oidc_issuer_url = module.cluster.cluster_oidc_issuer_url
service_account_namespace = "cert-manager"
service_account_name = "cert-manager"
tags = var.tags
}
module "external-dns" {
count = local.modules.external-dns.enabled ? 1 : 0
source = "github.com/getupcloud/terraform-module-aws-external-dns?ref=v2.0.3"
cluster_name = module.cluster.cluster_id
cluster_oidc_issuer_url = module.cluster.cluster_oidc_issuer_url
customer_name = var.customer_name
tags = var.tags
hosted_zone_ids = local.modules.external-dns.hosted_zone_ids
}
module "kms" {
count = local.modules.kms.enabled ? 1 : 0
source = "github.com/getupcloud/terraform-module-aws-kms?ref=v1.1"
cluster_name = module.cluster.cluster_id
cluster_oidc_issuer_url = module.cluster.cluster_oidc_issuer_url
customer_name = var.customer_name
tags = var.tags
key_id = local.modules.kms.key_id
region = var.region
account_id = var.account_id
}
module "logging" {
count = local.modules.logging.enabled ? 1 : 0
source = "github.com/getupcloud/terraform-module-aws-loki?ref=v1.5"
cluster_name = module.cluster.cluster_id
cluster_oidc_issuer_url = module.cluster.cluster_oidc_issuer_url
customer_name = var.customer_name
tags = var.tags
region = var.region
account_id = var.account_id
}