From 9f3c46786df59598764d43fe70bf1b15fa92eb9f Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene Date: Mon, 9 Dec 2024 15:51:21 +0000 Subject: [PATCH] feat: adding permissions to view lambda's --- modules/costanalysis/policies.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/costanalysis/policies.tf b/modules/costanalysis/policies.tf index 53c11e5..627e0b7 100644 --- a/modules/costanalysis/policies.tf +++ b/modules/costanalysis/policies.tf @@ -3,7 +3,7 @@ # # -## These permissions are used in the Cost Analytics accounts, and used to +## These permissions are used in the Cost Analytics accounts, and used to ## support the cudos dashboards # # tfsec:ignore:aws-iam-no-policy-wildcards @@ -58,9 +58,10 @@ data "aws_iam_policy_document" "policy" { sid = "AllowLambda" effect = "Allow" actions = [ + "lambda:GetAccountSettings", "lambda:GetFunction", - "lambda:ListFunctions", "lambda:GetFunctionConfiguration", + "lambda:ListFunctions", "lambda:ListTags", "lambda:ListVersionsByFunction", ]