Skip to content

Commit

Permalink
fixing typo in module for route table resource name
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhimanyu Narwal committed Jan 17, 2020
1 parent c102b70 commit cad42ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/route-tables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ resource "aws_route_table" "private"{

resource "aws_route" "private" {
count = length(var.private_subnets)
route_table_id = element(aws_route_table.public.*.id, count.index)
route_table_id = element(aws_route_table.private.*.id, count.index)
destination_cidr_block = "0.0.0.0/0"
nat_gateway_id = element(aws_nat_gateway.main.*.id, count.index)
}
Expand Down

0 comments on commit cad42ed

Please sign in to comment.