From 0a7ca79c8291d5926a517efa09c910e08acaf491 Mon Sep 17 00:00:00 2001 From: Sourav Kundu Date: Fri, 4 Oct 2024 16:39:00 -0500 Subject: [PATCH] update permissions #97 --- deploy/code_deploy_role.tf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deploy/code_deploy_role.tf b/deploy/code_deploy_role.tf index 6848d28..e21e992 100644 --- a/deploy/code_deploy_role.tf +++ b/deploy/code_deploy_role.tf @@ -49,10 +49,9 @@ data "aws_iam_policy_document" "codedeploy" { ] resources = [ - "*" - # "arn:aws:elasticloadbalancing:${var.region}:${data.aws_caller_identity.current.account_id}:loadbalancer/*", - # "arn:aws:elasticloadbalancing:${var.region}:${data.aws_caller_identity.current.account_id}:listener/*", - # "arn:aws:elasticloadbalancing:${var.region}:${data.aws_caller_identity.current.account_id}:targetgroup/*" + "arn:aws:elasticloadbalancing:${var.region}:${data.aws_caller_identity.current.account_id}:loadbalancer/*", + "arn:aws:elasticloadbalancing:${var.region}:${data.aws_caller_identity.current.account_id}:listener/*", + "arn:aws:elasticloadbalancing:${var.region}:${data.aws_caller_identity.current.account_id}:targetgroup/*" ] } statement {