Does someone have the policy definition an ECS Age...
# ask-community
c
Does someone have the policy definition an ECS Agent itself requires? Just had mine fall over because it needed to Describe VPCs, would be handy to just give it all the permissions it needs than doing them 1 by 1 πŸ˜„
πŸ‘€ 1
z
Unfortunately this is still an open issue https://github.com/PrefectHQ/prefect/issues/4244
c
So is it known what permissions are required?
I'm happy to raise a PR if the permissions are known to contribute to the docs
But there's a big gap missing at the mo πŸ˜…
z
Here's a user's response
Here are the permissions that we use for ESC/Fargate. Our agent (0.14.6) has the following permissions to use boto3 for submitting tasks - AmazonS3FullAccess and AmazonECSFull Access. Our task_run_arn has the following permissions: AmazonS3FullAccess and AmazonEC2ContainerRegistryFullAccess. Our execution_run_arn has AmazonEcsTaskExecutionRole.
It could be that we’re too lenient on permissions and could scale them back - its on our todo list but this got us unblocked. HTH.
c
Hmmm okay
z
I don't have a list of required permissions πŸ˜•
c
I'd assumed providing the Agent, there'd be a list squirrelled away somewhere haha
z
Yeah I think that when it was developed they just used an account with full access to simplify their work
c
Blanket ECS access is probably okay for now, but in a production env that's not the nicest πŸ˜•
z
It's been two weeks and they also said they'd PR it when they had time
c
No worries, thanks for the update @Zanie πŸ˜„ I'll message them!
Our usecase is just more open to the public so I'd rather not let anyone just blow through a credit card limit 🦜
z
hahah understandable