Skip to content

Commit 37290f7

Browse files
authored
fix: bug with KMS key crn parser (#363)
1 parent fdd0add commit 37290f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ locals {
7979
########################################################################################################################
8080

8181
module "kms_key_crn_parser" {
82-
count = local.create_kms_auth_policy ? 1 : 0
82+
count = var.kms_encryption_enabled ? 1 : 0
8383
source = "terraform-ibm-modules/common-utilities/ibm//modules/crn-parser"
8484
version = "1.2.0"
85-
crn = var.kms_key_crn
85+
crn = var.kms_key_crn != null ? var.kms_key_crn : ""
8686
}
8787

8888
# Create auth policy (scoped to exact KMS key)

0 commit comments

Comments
 (0)