Skip to content

Commit

Permalink
interpolate gateway name in route name for static vpn
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoo committed Jun 11, 2020
1 parent 0cb973b commit c1c96ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/net-vpn-static/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ resource "google_compute_forwarding_rule" "udp-4500" {

resource "google_compute_route" "route" {
for_each = local.route_pairs
name = "vpn-${each.key}"
name = "vpn-${var.name}-${each.key}"
project = var.project_id
network = var.network
dest_range = each.value.range
Expand Down

0 comments on commit c1c96ca

Please sign in to comment.