module "network" { source = "../../modules/network" vpc_id = var.vpc_id private_subnets = var.private_subnets public_subnets = var.public_subnets cluster_name = local.cluster_name } module "eks" { source = "../../modules/eks" vpc_id = var.vpc_id cluster_name = local.cluster_name subnet_ids = concat( module.network.private_subnet_ids, module.network.public_subnet_ids, ) depends_on = [module.network] azs = module.network.azs }