Skip to content

Commit

Permalink
Migrate website traffic entirely to Cloud Run (#2211)
Browse files Browse the repository at this point in the history
I will delete all our app engine stuff probably in the next week or two,
in case we really need to roll back.
  • Loading branch information
michaelkedar committed May 15, 2024
1 parent 4d6ba33 commit be3d06b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deployment/terraform/modules/osv/website.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ["*"]
Expand All @@ -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
}
}
}
Expand Down

0 comments on commit be3d06b

Please sign in to comment.