Skip to content

Commit

Permalink
Update index
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch-hamm committed Apr 24, 2024
1 parent 917ba40 commit ef326f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,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"
key_ring = google_kms_key_ring.keyring.id
key_ring = google_kms_key_ring.keyring[0].id
rotation_period = "12960000s" #150 days
}

Expand Down Expand Up @@ -123,7 +123,7 @@ locals {
]
}

database_encryption = var.enable_database_encryption ? (var.database_encryption_key_name ? [{"key_name": var.database_encryption_key_name, "state": "ENCRYPTED"}] : [{"key_name": google_kms_crypto_key.gke-encryption-key.self_link, "state": "ENCRYPTED"}]) : [{"key_name": "", "state": "DECRYPTED"}]
database_encryption = var.enable_database_encryption ? (var.database_encryption_key_name ? [{"key_name": var.database_encryption_key_name, "state": "ENCRYPTED"}] : [{"key_name": google_kms_crypto_key.gke-encryption-key[0].name, "state": "ENCRYPTED"}]) : [{"key_name": "", "state": "DECRYPTED"}]
}

module "gke" {
Expand Down

0 comments on commit ef326f8

Please sign in to comment.