Skip to content

Commit

Permalink
remove default location in tag value - cloud-run-v2 tags.tf (#2755)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Mattible authored Dec 9, 2024
1 parent 36b70bd commit 817df69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cloud-run-v2/tags.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 817df69

Please sign in to comment.