From 4b711df2a8cf456b972e5560eba0a4edb538c75e Mon Sep 17 00:00:00 2001 From: Bayron Carranza Date: Tue, 8 Feb 2022 12:38:36 -0600 Subject: [PATCH] output vars for route table ids public and privates subnets and name of vpc (#247) * output vars for route table ids public and privates * description corrections * get name of vpc in vpc module --- terraform-modules/aws/vpc/outputs.tf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/terraform-modules/aws/vpc/outputs.tf b/terraform-modules/aws/vpc/outputs.tf index 38f92ec3b..0f1bbdd3c 100644 --- a/terraform-modules/aws/vpc/outputs.tf +++ b/terraform-modules/aws/vpc/outputs.tf @@ -3,6 +3,11 @@ output "vpc_id" { value = module.vpc.vpc_id } +output "vpc_name" { + description = "name of vpc" + value = module.vpc.name +} + output "vpc_cidr_block" { description = "The CIDR block of the VPC" value = var.vpc_cidr @@ -22,3 +27,14 @@ output "k8s_subnets" { description = "A list of private k8s subnets" value = module.vpc.elasticache_subnets } + +output "private_route_table_ids" { + description = "A list of route table ids for private subnets" + value = module.vpc.private_route_table_ids +} + +output "public_route_table_ids" { + description = "A list of route table ids for public subnets" + value = module.vpc.public_route_table_ids +} +