From 8f1a8b23679bc136f3170f8415a64e9503a4afcd Mon Sep 17 00:00:00 2001 From: Oleksii Borodai Date: Wed, 23 Oct 2019 14:46:43 +0300 Subject: [PATCH] Fix kms_master_key_id to conform with terraform resource --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index f148ebf9..85715f8d 100644 --- a/main.tf +++ b/main.tf @@ -187,7 +187,7 @@ resource "aws_s3_bucket" "this" { content { sse_algorithm = apply_server_side_encryption_by_default.value.sse_algorithm - kms_master_key_id = apply_server_side_encryption_by_default.value.kms_master_key_id + kms_master_key_id = lookup(apply_server_side_encryption_by_default.value, "kms_master_key_id", null) } } }