forked from vikash-kumar01/mrdevops_java_app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
26 lines (16 loc) · 754 Bytes
/
main.tf
File metadata and controls
26 lines (16 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module "aws_eks_cluster" {
source = "./modules/aws_eks"
for_each = var.aws_eks_cluster_config
eks_cluster_name = each.value.eks_cluster_name
subnet_ids = each.value.eks_subnet_ids
tags = each.value.tags
}
module "aws_eks_node_group" {
source = "./modules/aws_eks_nodegroup"
for_each = var.eks_node_group_config
node_group_name = each.value.node_group_name
eks_cluster_name = module.aws_eks_cluster[each.value.eks_cluster_name].eks_cluster_name
subnet_ids = each.value.node_subnet_ids
nodes_iam_role = each.value.nodes_iam_role
tags = each.value.tags
}