Skip to content

Commit 3192133

Browse files
committed
update ECS policy to enable detecting which images are actively running images
1 parent 1799267 commit 3192133

File tree

1 file changed

+3
-2
lines changed
  • terraform/services/ecr-cleanup

1 file changed

+3
-2
lines changed

terraform/services/ecr-cleanup/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ data "aws_iam_policy_document" "ecr_cleanup" {
2828
statement {
2929
sid = "ECSReadAccess"
3030
actions = [
31-
"ecs:ListTaskDefinitions",
32-
"ecs:DescribeTaskDefinition",
31+
"ecs:ListClusters",
32+
"ecs:ListTasks",
33+
"ecs:DescribeTasks",
3334
]
3435
resources = ["*"]
3536
}

0 commit comments

Comments
 (0)