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
This commit is contained in:
Matthew Callinan
2024-12-09 18:48:23 +11:00
committed by GitHub
parent 36b70bd8b8
commit 817df69ff8

View File

@@ -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