Skip to content

Commit

Permalink
fix: Correct conditional logic check of cluster encryption config (#1137
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bryantbiggs committed Nov 5, 2022
1 parent b823cb9 commit 034d764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
@@ -1,10 +1,10 @@
locals {
cluster_encryption_config = length(var.cluster_encryption_config) > 0 ? [
cluster_encryption_config = length(var.cluster_encryption_config) > 0 ? var.cluster_encryption_config : [
{
provider_key_arn = try(module.kms[0].key_arn, var.cluster_kms_key_arn)
resources = ["secrets"]
}
] : var.cluster_encryption_config
]
}

module "kms" {
Expand Down

0 comments on commit 034d764

Please sign in to comment.