Skip to content

Commit db60e14

Browse files
committed
fix: update next hop gateway URLs in compute routes to use full API path
1 parent 4508fae commit db60e14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ resource "google_compute_route" "route_ipv4_googleapi" {
359359
name = "route-to-gapis-ipv4-${var.automq_byoc_env_id}"
360360
network = data.google_compute_network.vpc.name
361361
dest_range = "199.36.153.8/30"
362-
next_hop_gateway = "global/gateways/default-internet-gateway"
362+
next_hop_gateway = "https://www.googleapis.com/compute/v1/projects/${var.cloud_project_id}/global/gateways/default-internet-gateway"
363363

364364
priority = 90
365365
}
@@ -369,7 +369,7 @@ resource "google_compute_route" "route_ipv4_googleapi_additional" {
369369
name = "route-to-gapis-ipv4-additional-${var.automq_byoc_env_id}"
370370
network = data.google_compute_network.vpc.name
371371
dest_range = "34.126.0.0/18"
372-
next_hop_gateway = "global/gateways/default-internet-gateway"
372+
next_hop_gateway = "https://www.googleapis.com/compute/v1/projects/${var.cloud_project_id}/global/gateways/default-internet-gateway"
373373

374374
priority = 90
375375
}

0 commit comments

Comments
 (0)