From 8b995871e337be3b9976a11b2047a5bdee93cab1 Mon Sep 17 00:00:00 2001 From: Hope Aitchison Date: Fri, 22 Dec 2023 11:05:49 +0000 Subject: [PATCH] updating iam policies --- test/unit-test/main.tf | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/unit-test/main.tf b/test/unit-test/main.tf index 37ebb64..db0ab2c 100644 --- a/test/unit-test/main.tf +++ b/test/unit-test/main.tf @@ -194,16 +194,16 @@ data "aws_iam_policy_document" "AWSLambdaVPCAccessExecutionRole" { format("arn:aws:ec2:eu-west-2:%s:network-interface/*", data.aws_caller_identity.current.account_id) ] } - # statement { - # sid = "LambdaVPCAccess" - # effect = "Allow" - # actions = [ - # "sts:AssumeRole" - # ] - # resources = [ - # "arn:aws:iam::*:role/LambdaFunctionVPCAccess" - # ] - # } + statement { + sid = "AllowLambdaToAssumeRole" + effect = "Allow" + actions = [ + "sts:AssumeRole" + ] + resources = [ + "arn:aws:iam::*:role/LambdaFunctionVPCAccess" + ] + } statement { sid = "AllowLambdaToCreateLogGroup" effect = "Allow"