Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 18, 2022
1 parent 749cfe6 commit 3d6938e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpc-transit-gateway-association/self/routing.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ resource "aws_route" "gateway_ipv4" {
}

resource "aws_route" "gateway_vpn_ipv4" {
for_each = var.private_route_table_ids
for_each = var.vpn_route_prefix_list_name != null && var.data_input.vpn_prefix_list_id_ipv4 != null ? var.private_route_table_ids : {}

route_table_id = each.value
destination_prefix_list_id = var.data_input.vpn_prefix_list_id_ipv4
Expand Down

0 comments on commit 3d6938e

Please sign in to comment.