From 16b0c6b6dfe8ea3662e0e217adcb95fbefd968e2 Mon Sep 17 00:00:00 2001 From: Hope Aitchison Date: Tue, 2 Jan 2024 10:23:34 +0000 Subject: [PATCH] declaring the arn as an interpolation --- test/unit-test/main.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit-test/main.tf b/test/unit-test/main.tf index b2505dd..8881aa8 100644 --- a/test/unit-test/main.tf +++ b/test/unit-test/main.tf @@ -81,8 +81,9 @@ data "aws_iam_policy_document" "instance-scheduler-lambda-function-policy" { # # consider log group rename to function name or build log group as a separate resource # format("arn:aws:logs:eu-west-2:%s:aws/lambda/fake", data.aws_caller_identity.current.account_id) # ] - resources = aws_cloudwatch_log_group.fake.arn - } + resources = [ + "${aws_cloudwatch_log_group.fake.arn}" + ] statement { sid = "AllowLambdaToWriteLogsToGroup" effect = "Allow"