From cb37c26a9739d25e7c14d863e1b5985c2f50e249 Mon Sep 17 00:00:00 2001 From: Stephan <99481666+stephan242@users.noreply.github.com> Date: Wed, 14 Aug 2024 17:22:48 +0100 Subject: [PATCH] Make sure replica_kms_key_id is truly empty (#244) --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index ffefecbe..72e8b7d7 100644 --- a/main.tf +++ b/main.tf @@ -234,7 +234,7 @@ resource "aws_s3_bucket_replication_configuration" "default" { dynamic "encryption_configuration" { for_each = try( [rule.value.destination.encryption_configuration.replica_kms_key_id], - [rule.value.destination.replica_kms_key_id], + [compact(rule.value.destination.replica_kms_key_id)], [] )