From cefa36b9e326eaa6554be3389a360a79a563f959 Mon Sep 17 00:00:00 2001 From: arnodasilva Date: Wed, 14 Aug 2024 21:27:57 +0200 Subject: [PATCH] fix(modules/kms): use the `google_tags_location_tag_binding` Terraform resource to bind tags on KMS key rings --- modules/kms/tags.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/kms/tags.tf b/modules/kms/tags.tf index dee198154b..eaee171de5 100644 --- a/modules/kms/tags.tf +++ b/modules/kms/tags.tf @@ -14,8 +14,9 @@ * limitations under the License. */ -resource "google_tags_tag_binding" "binding" { +resource "google_tags_location_tag_binding" "binding" { for_each = var.tag_bindings parent = "//cloudkms.googleapis.com/${local.keyring.id}" tag_value = each.value + location = var.keyring.location }