Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
guyzsarun committed Dec 17, 2023
1 parent a8f22db commit ea559c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ resource "aws_route_table" "main-vpc-private-routetable" {
resource "aws_route_table_association" "route-assoc-private" {
subnet_id = each.value.id
route_table_id = aws_route_table.main-vpc-private-routetable.id
for_each = { for i, subnet in aws_subnet.main-vpc-subnet-private : subnet.id => subnet }
for_each = { for i, subnet in aws_subnet.main-vpc-subnet-private : subnet.id => subnet }
}

resource "aws_route_table_association" "route-assoc-public" {
subnet_id = each.value.id
route_table_id = aws_route_table.main-vpc-public-routetable.id
for_each = { for i, subnet in aws_subnet.main-vpc-subnet-public : subnet.id => subnet }
for_each = { for i, subnet in aws_subnet.main-vpc-subnet-public : subnet.id => subnet }
}

resource "aws_internet_gateway" "gw" {
Expand Down

0 comments on commit ea559c5

Please sign in to comment.