Skip to content

Commit

Permalink
output vars for route table ids public and privates subnets and name …
Browse files Browse the repository at this point in the history
…of vpc (#247)

* output vars for route table ids public and privates

* description corrections

* get name of vpc in vpc module
  • Loading branch information
bcarranza authored Feb 8, 2022
1 parent 2abd6a3 commit 4b711df
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions terraform-modules/aws/vpc/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

0 comments on commit 4b711df

Please sign in to comment.