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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user