From d4dd3a27ff4b7cb4bd3c2245d2d7613617f4ebd3 Mon Sep 17 00:00:00 2001 From: Murdo <109604278+murdo-moj@users.noreply.github.com> Date: Thu, 5 Oct 2023 13:19:07 +0100 Subject: [PATCH] Specified resource --- test/unit-test/main.tf | 2 +- test/unit-test/s3.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit-test/main.tf b/test/unit-test/main.tf index e4d7427..3ea74a5 100644 --- a/test/unit-test/main.tf +++ b/test/unit-test/main.tf @@ -74,7 +74,7 @@ data "aws_iam_policy_document" "instance-scheduler-lambda-function-policy" { "logs:CreateLogGroup" ] resources = [ - format("arn:aws:logs:eu-west-2:%s:*", data.aws_caller_identity.current.account_id) + format("arn:aws:logs:eu-west-2:%s:aws/lambda/fake", data.aws_caller_identity.current.account_id) ] } statement { diff --git a/test/unit-test/s3.tf b/test/unit-test/s3.tf index 94de481..43ec9d5 100644 --- a/test/unit-test/s3.tf +++ b/test/unit-test/s3.tf @@ -55,4 +55,4 @@ module "s3-bucket" { #tfsec:ignore:aws-s3-enable-versioning ] tags = local.tags -} \ No newline at end of file +}