-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.tf
More file actions
34 lines (31 loc) · 1.02 KB
/
main.tf
File metadata and controls
34 lines (31 loc) · 1.02 KB
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
module "vpc" {
source = "./modules/vpc"
name_prefix = local.cluster_name
vpc_cidr = var.vpc_cidr
private_subnets = var.private_subnets
public_subnets = var.public_subnets
}
module "eks" {
source = "./modules/eks"
aws_kms_key_arn = module.efs.aws_kms_key_arn
vpc_id = module.vpc.vpc_id
subnets = module.vpc.private_subnets
name_prefix = local.cluster_name
node_groups = var.node_groups
tags = local.tags
}
module "app" {
source = "./modules/app"
cluster_endpoint = module.eks.cluster_endpoint
cluster_auth_token = module.eks.cluster_auth_token
cluster_ca_certificate = module.eks.cluster_ca_certificate
efs_id = module.efs.efs_id
name_prefix = local.cluster_name
}
module "efs" {
source = "./modules/efs"
private_subnets = module.vpc.private_subnets
name_prefix = local.cluster_name
vpc_id = module.vpc.vpc_id
vpc_cidr_block = module.vpc.vpc_cidr_block
}