diff --git a/terraform/environments/production/gateways.tf b/terraform/environments/production/gateways.tf index d7eb042ef..ba3b67bbe 100644 --- a/terraform/environments/production/gateways.tf +++ b/terraform/environments/production/gateways.tf @@ -8,7 +8,7 @@ resource "google_compute_network" "gateways" { auto_create_subnetworks = false depends_on = [ - google_project_service.compute + module.api ] } diff --git a/terraform/environments/production/main.tf b/terraform/environments/production/main.tf index 4cb167431..c0b0df467 100644 --- a/terraform/environments/production/main.tf +++ b/terraform/environments/production/main.tf @@ -708,6 +708,10 @@ module "relays" { portal_websocket_url = "wss://api.${local.tld}" portal_token = var.relay_portal_token + + depends_on = [ + module.api + ] } resource "google_compute_firewall" "portal-ssh-ipv4" { diff --git a/terraform/modules/gateway-app/outputs.tf b/terraform/modules/gateway-app/outputs.tf index 1bad3bb9e..7a8385465 100644 --- a/terraform/modules/gateway-app/outputs.tf +++ b/terraform/modules/gateway-app/outputs.tf @@ -9,7 +9,3 @@ output "target_tags" { output "instances" { value = var.compute_instances } - -output "network" { - value = google_compute_network.network.self_link -}