Skip to content

Commit

Permalink
Revert Resource=* first
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Aug 27, 2024
1 parent 51d08c8 commit 270e9f1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions infrastructure/cloud/modules/security/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ resource "aws_iam_role_policy" "ecs_execution_policy" {
],
Effect = "Allow",
Resource = [
var.ecr_repository_arn
"*"
]
},
{
Expand All @@ -54,10 +54,8 @@ resource "aws_iam_role_policy" "ecs_execution_policy" {
"logs:PutLogEvents",
"logs:CreateLogGroup"
],
Effect = "Allow",
Resource = [
var.ecs_web_td_log_group_arn
]
Effect = "Allow",
Resource = "arn:aws:logs:*:*:*"
}
]
})
Expand Down

0 comments on commit 270e9f1

Please sign in to comment.