Skip to content

Commit

Permalink
fix(modules/kms): use the google_tags_location_tag_binding Terrafor…
Browse files Browse the repository at this point in the history
…m resource to bind tags on KMS key rings
  • Loading branch information
arnodasilva committed Aug 14, 2024
1 parent d8a5c42 commit 6832bf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/kms/tags.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 6832bf5

Please sign in to comment.