Remove IAM actions from minimal policy for AWS FargateCluster #381
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
provider/aws/ecs
Cluster provider for AWS ECS
In the interest of minimizing the number of permissions that we need to provide to the cluster manager, I'd like to explore the option of removing the need for
iam:ListRoles
andiam:ListRoleTags
actions if all resources are specified when creating the cluster. Looking at the code, it appears that if thetask_role_arn
andexecution_role_arn
are specified, then the iam actions are only needed when attempting to clean up stale resources.Is there support for skipping the cleanup of stale IAM roles if
task_role_arn
andexecution_role_arn
are explicitly specified? It might enable us to reduce the resources needed to ec2, ecs, and logs. (And for FargateCluster we could eliminate the need for ec2 as well).The text was updated successfully, but these errors were encountered: