From 817df69ff8c1aa3a7d5f34285fcf8a14cf9d8842 Mon Sep 17 00:00:00 2001 From: Matthew Callinan <47421139+Mattible@users.noreply.github.com> Date: Mon, 9 Dec 2024 18:48:23 +1100 Subject: [PATCH] remove default location in tag value - cloud-run-v2 tags.tf (#2755) The Parent resource has a default to europe-west1 when it should be for the resource block from where the cloud run actually is. Changed to use the var.region instead --- modules/cloud-run-v2/tags.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cloud-run-v2/tags.tf b/modules/cloud-run-v2/tags.tf index 52538ebf1c..001911d035 100644 --- a/modules/cloud-run-v2/tags.tf +++ b/modules/cloud-run-v2/tags.tf @@ -17,7 +17,7 @@ resource "google_tags_location_tag_binding" "binding" { for_each = var.create_job ? {} : var.tag_bindings parent = ( - "//run.googleapis.com/projects/${var.project_id}/locations/europe-west1/services/${google_cloud_run_v2_service.service[0].name}" + "//run.googleapis.com/projects/${var.project_id}/locations/${var.region}/services/${google_cloud_run_v2_service.service[0].name}" ) tag_value = each.value location = var.region