Repository navigation
Expand file tree
/
Copy pathmodules.tf
More file actions
50 lines (42 loc) · 1.54 KB
/
Copy pathmodules.tf
File metadata and controls
50 lines (42 loc) · 1.54 KB
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
# module "nginx" {
# source = "./modules/nginx"
# repository = "https://kubernetes.github.io/ingress-nginx"
# chart_name = "ingress-nginx"
# chart_version = "3.21.0"
# namespace = "kube-system"
# domain_name = var.dns_zone_name
# }
module "external_dns" {
source = "./modules/external_dns"
repository = "https://charts.bitnami.com/bitnami"
chart_name = "external-dns"
chart_version = "4.5.4"
namespace = "external-dns"
cluster_id = module.eks.cluster_id
external_dns_id = "aws"
external_dns_region = var.aws_region
external_dns_role_name = var.external_dns_role_name
account_id = data.aws_caller_identity.current.account_id
txt_owner_id = var.hostedzone_id
}
module "cert_manager" {
source = "./modules/cert_manager"
repository = "https://charts.jetstack.io"
chart_name = "cert-manager"
chart_version = "v1.1.0"
namespace = "cert-manager"
hostedzone_id = var.hostedzone_id
open_id_connect_arn = module.eks.oidc_provider_arn
identity_oidc_issuer = replace(data.aws_eks_cluster.cluster.identity.0.oidc.0.issuer, "https://", "")
worker_iam_role_arn = module.eks.worker_iam_role_arn
account_id = data.aws_caller_identity.current.account_id
email = var.email
region = var.aws_region
dns_zone_name = var.dns_zone_name
}
module "monitoring" {
source = "./modules/monitoring"
chart_version = "13.3.0"
namespace = "monitoring"
ingress_host = var.dns_zone_name
}