From be3d06b0aee24e1843ee417c950026e799b472a5 Mon Sep 17 00:00:00 2001 From: Michael Kedar Date: Thu, 16 May 2024 09:51:28 +1000 Subject: [PATCH] Migrate website traffic entirely to Cloud Run (#2211) I will delete all our app engine stuff probably in the next week or two, in case we really need to roll back. --- deployment/terraform/modules/osv/website.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deployment/terraform/modules/osv/website.tf b/deployment/terraform/modules/osv/website.tf index 20d3524a807..ef244daf855 100644 --- a/deployment/terraform/modules/osv/website.tf +++ b/deployment/terraform/modules/osv/website.tf @@ -168,7 +168,7 @@ resource "google_compute_region_network_endpoint_group" "appengine_neg" { resource "google_compute_url_map" "website" { project = var.project_id name = "website-url-map" - default_service = module.gclb.backend_services.appengine.id + default_service = module.gclb.backend_services.cloudrun.id host_rule { hosts = ["*"] @@ -177,21 +177,21 @@ resource "google_compute_url_map" "website" { path_matcher { name = "allpaths" - default_service = module.gclb.backend_services.appengine.id + default_service = module.gclb.backend_services.cloudrun.id route_rules { priority = 1 match_rules { prefix_match = "/" } route_action { - # TODO(michaelkedar): remove appengine when fully migrated + # TODO(michaelkedar): remove appengine weighted_backend_services { backend_service = module.gclb.backend_services.appengine.id - weight = 50 + weight = 0 } weighted_backend_services { backend_service = module.gclb.backend_services.cloudrun.id - weight = 50 + weight = 100 } } }