From a52cc49e126cf194ad34a8b4af87663f5bf44de4 Mon Sep 17 00:00:00 2001 From: Buckingham Date: Tue, 10 Dec 2024 11:43:00 +0000 Subject: [PATCH] Update_101224_2 --- terraform/environments/ppud/iam.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/terraform/environments/ppud/iam.tf b/terraform/environments/ppud/iam.tf index abb30f3dec8..4890c4b620b 100644 --- a/terraform/environments/ppud/iam.tf +++ b/terraform/environments/ppud/iam.tf @@ -1204,6 +1204,16 @@ resource "aws_iam_policy" "iam_policy_for_lambda_cloudwatch_get_metric_data_dev" "arn:aws:ssm:eu-west-2:${local.environment_management.account_ids["ppud-development"]}:parameter/klayers-account" ] }, + { + "Sid" : "EC2Policy", + "Effect" : "Allow", + "Action" : [ + "ec2:DescribeInstances" + ], + "Resource" : [ + "arn:aws:ec2:eu-west-2:${local.environment_management.account_ids["ppud-development"]}:*" + ] + }, { "Sid" : "LogPolicy", "Effect" : "Allow",