-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
36 lines (32 loc) · 1.29 KB
/
main.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
module "monitoring" {
source = "./modules/monitoring"
domain_name = var.domain_name
org_name = var.prefix
grafana_pwd = var.grafana_pwd
}
module "external_dns" {
source = "./modules/external_dns"
cluster_id = module.eks.cluster_id
external_dns_id = "aws"
external_dns_region = var.aws_region
external_dns_chart_version = "2.22.1"
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 "nginx" {
source = "./modules/nginx"
domain_name = var.domain_name
}
module "cert_manager" {
source = "./modules/cert_manager"
cert_manager_chart_version = "v0.15.0-beta.1"
hostedzone_id = var.hostedzone_id
open_id_connect_arn = aws_iam_openid_connect_provider.default.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
domain_name = var.domain_name
}