-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodules.tf
38 lines (28 loc) · 971 Bytes
/
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
module "network" {
source = "./modules/network"
cluster_name = var.cluster_name
aws_region = var.aws_region
}
module "master" {
source = "./modules/master"
cluster_name = var.cluster_name
aws_region = var.aws_region
k8s_version = var.k8s_version
cluster_vpc = module.network.cluster_vpc
private_subnet_1a = module.network.private_subnet_1a
private_subnet_1c = module.network.private_subnet_1c
}
module "nodes" {
source = "./modules/nodes"
cluster_name = var.cluster_name
aws_region = var.aws_region
k8s_version = var.k8s_version
cluster_vpc = module.network.cluster_vpc
private_subnet_1a = module.network.private_subnet_1a
private_subnet_1c = module.network.private_subnet_1c
eks_cluster = module.master.eks_cluster
eks_cluster_sg = module.master.security_group
nodes_instances_size = var.nodes_instances_size
auto_scale_options = var.auto_scale_options
auto_scale_cpu = var.auto_scale_cpu
}