From 7328c8edb5683acce37b7262701ff2f16f9aef02 Mon Sep 17 00:00:00 2001 From: Clete Blackwell II Date: Wed, 13 Dec 2023 09:42:53 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20dynamic=20statement?= =?UTF-8?q?=20(had=20syntax=20error)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tf-lambda-iam-role.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf-lambda-iam-role.tf b/tf-lambda-iam-role.tf index 3035eee..b9acc5d 100644 --- a/tf-lambda-iam-role.tf +++ b/tf-lambda-iam-role.tf @@ -44,7 +44,7 @@ data "aws_iam_policy_document" "log_retention" { for_each = var.kms_key_arn == null ? [] : [var.kms_key_arn] content { actions = ["kms:GenerateDataKey"] - resources = [each.value] + resources = [statement.value] } }