-
Notifications
You must be signed in to change notification settings - Fork 0
/
modules.tf
41 lines (37 loc) · 1.22 KB
/
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
39
40
41
module "eks_network" {
source = "./modules/network"
cidr_block = var.cidr_block
project_name = var.project_name
tags = var.tags
}
module "eks_cluster" {
source = "./modules/cluster"
project_name = var.project_name
tags = var.tags
public_subnet_1a = module.eks_network.subnet_pub_1a
public_subnet_1b = module.eks_network.subnet_pub_1b
}
module "eks_managed_node_group" {
source = "./modules/managed-node-group"
project_name = var.project_name
cluster_name = module.eks_cluster.cluster_name
subnet_private_1a = module.eks_network.subnet_priv_1a
subnet_private_1b = module.eks_network.subnet_priv_1b
tags = var.tags
}
module "eks_add_ons" {
source = "./modules/add-ons"
project_name = var.project_name
tags = var.tags
oidc = module.eks_cluster.oidc
cluster_name = module.eks_cluster.cluster_name
}
module "eks_ec2" {
source = "./modules/ec2"
project_name = var.project_name
tags = var.tags
vpc = module.eks_network.vpc
public_subnet = module.eks_network.subnet_pub_1a
private_subnet = module.eks_network.subnet_priv_1b
cluster_sg = module.eks_cluster.cluster_sg
}