Skip to content

Commit 518dfb9

Browse files
committed
added output for private route table association objects
1 parent 3858547 commit 518dfb9

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

examples/issues/main.tf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,27 @@ module "vpc_issue_108" {
8989
Name = "route-already-exists"
9090
}, local.tags)
9191
}
92+
93+
################################################################################
94+
# Issue 1182 - https://github.com/terraform-aws-modules/terraform-aws-vpc/issues/1182
95+
################################################################################
96+
97+
module "vpc_issue_1182" {
98+
source = "../../"
99+
100+
name = "route-table"
101+
cidr = "10.0.0.0/16"
102+
103+
azs = local.azs
104+
private_subnets = ["10.0.0.0/24", "10.0.1.0/24"]
105+
public_subnets = ["10.0.101.0/24", "10.0.102.0/24"]
106+
107+
enable_nat_gateway = true
108+
single_nat_gateway = false
109+
enable_vpn_gateway = true
110+
111+
tags = merge({
112+
Issue = "1182"
113+
Name = "route-table"
114+
}, local.tags)
115+
}

examples/issues/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,5 @@ output "issue_108_nat_public_ips" {
114114
################################################################################
115115
output "private_route_table_association_objects" {
116116
description = "The list of private route table associations from the VPC module"
117-
value = module.vpc.private_route_table_association_objects
117+
value = module.vpc_issue_1182.private_route_table_association_objects
118118
}

outputs.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,5 +671,3 @@ output "name" {
671671
description = "The name of the VPC specified as argument to this module"
672672
value = var.name
673673
}
674-
675-

0 commit comments

Comments
 (0)