Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions examples/issues/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,27 @@ module "vpc_issue_108" {
Name = "route-already-exists"
}, local.tags)
}

################################################################################
# Issue 1182 - https://github.com/terraform-aws-modules/terraform-aws-vpc/issues/1182
################################################################################

module "vpc_issue_1182" {
source = "../../"

name = "route-table"
cidr = "10.0.0.0/16"

azs = local.azs
private_subnets = ["10.0.0.0/24", "10.0.1.0/24"]
public_subnets = ["10.0.101.0/24", "10.0.102.0/24"]

enable_nat_gateway = true
single_nat_gateway = false
enable_vpn_gateway = true

tags = merge({
Issue = "1182"
Name = "route-table"
}, local.tags)
}
8 changes: 8 additions & 0 deletions examples/issues/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,11 @@ output "issue_108_nat_public_ips" {
description = "List of public Elastic IPs created for AWS NAT Gateway"
value = module.vpc_issue_108.nat_public_ips
}

################################################################################
# Issue #1182
################################################################################
output "private_route_table_association_objects" {
description = "The list of private route table associations from the VPC module"
value = module.vpc_issue_1182.private_route_table_association_objects
}
4 changes: 4 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ output "private_route_table_ids" {
description = "List of IDs of private route tables"
value = local.private_route_table_ids
}
output "private_route_table_association_objects" {
description = "A list of all private route table associations, containing the full aws_route_table_association objects."
value = aws_route_table_association.private
}

output "private_nat_gateway_route_ids" {
description = "List of IDs of the private nat gateway route"
Expand Down
Loading