-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathk8s-eks-addons.tf
22 lines (19 loc) · 1.06 KB
/
k8s-eks-addons.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module "k8s_eks_addons" {
source = "./modules/k8s_eks_addons"
ingress_nginx_config = merge(var.ingress_nginx_config, { subnets_ids = local.public_subnets })
cluster_autoscaler_config = var.cluster_autoscaler_config
coredns_config = var.coredns_config
s3_csi_config = var.s3_csi_config
aws_load_balancer_controller_config = var.aws_load_balancer_controller_config
gpu_operator_config = var.gpu_operator_config
addon_context = {
aws_caller_identity_account_id = data.aws_caller_identity.current.account_id
aws_partition_id = data.aws_partition.current.partition
aws_region_name = data.aws_region.current.name
eks_cluster_id = module.eks.eks_cluster_id
eks_cluster_version = module.eks.eks_cluster_version
eks_oidc_issuer_url = replace(module.eks.eks_oidc_issuer_url, "https://", "")
tags = var.tags
}
depends_on = [module.eks.eks_cluster_arn, module.vpc]
}