From 39e9bc34bbdb4409be5a8ee1fb30443f3b44ef3a Mon Sep 17 00:00:00 2001 From: mitch-hamm <150183009+mitch-hamm@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:49:21 -0500 Subject: [PATCH] fix: Add KMS Uniqueness (#51) Update main.tf --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index f4a12d7..9c5a8b9 100644 --- a/main.tf +++ b/main.tf @@ -29,7 +29,7 @@ resource "google_kms_key_ring" "keyring" { resource "google_kms_crypto_key" "gke_encryption_key" { count = var.enable_database_encryption && var.database_encryption_key_name == "" ? 1 : 0 # Only create if the feature is enabled and the customer didn't provide a key - name = "streamnative-gke-encryption-key" + name = "sn-gke-key-${var.cluster_name}" key_ring = google_kms_key_ring.keyring[0].id rotation_period = "12960000s" #150 days }