From c6e79ddfc4f568b17e9bdfe9fd41dbdb6ecb9874 Mon Sep 17 00:00:00 2001 From: bgdanix Date: Wed, 12 Apr 2023 15:31:08 +0300 Subject: [PATCH] fix: create log-export-dataset on shielded-folder when no ecryption keys are defined --- blueprints/data-solutions/shielded-folder/log-export.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints/data-solutions/shielded-folder/log-export.tf b/blueprints/data-solutions/shielded-folder/log-export.tf index 9eff32d202..f0cf0ca785 100644 --- a/blueprints/data-solutions/shielded-folder/log-export.tf +++ b/blueprints/data-solutions/shielded-folder/log-export.tf @@ -73,7 +73,7 @@ module "log-export-dataset" { id = "${var.prefix}_audit_export" friendly_name = "Audit logs export." location = replace(var.log_locations.bq, "europe", "EU") - encryption_key = var.enable_features.encryption ? module.log-kms[var.log_locations.bq].keys["bq"].id : false + encryption_key = var.enable_features.encryption ? module.log-kms[var.log_locations.bq].keys["bq"].id : null } module "log-export-gcs" {