Skip to content

Commit f7b5604

Browse files
authored
Merge pull request #5 from university-outreach-infrastructure-tf/tf0.12-updates
Tf0.12 updates
2 parents 8309c53 + ffe299a commit f7b5604

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

module/route-tables.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ resource "aws_route_table_association" "public" {
1818
}
1919

2020
resource "aws_route_table" "private"{
21+
count = length(var.private_subnets)
2122
vpc_id = aws_vpc.vpc.id
22-
tags = merge( module.networking_labels.tags, { "Name"= format("%s-private", module.networking_labels.id), "Type" = "Private", "Environment" = var.stage })
23+
tags = merge( module.networking_labels.tags, { "Name"= format("%s-private-00%s", module.networking_labels.id, count.index), "Type" = "Private", "Environment" = var.stage })
2324
}
2425

2526
resource "aws_route" "private" {

0 commit comments

Comments
 (0)