2 個答案
- 最新
- 最多得票
- 最多評論
0
Hi Vince,
Please ensure that the IAM role which you are using has the necessary permissions to run tasks on ECS, describe task definitions, and other relevant actions.
已回答 8 個月前
Any hint on how to check this? My task definition works when I run the task in web console.
0
Hi,
The section "cluster examples" of https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security_iam_id-based-policy-examples.html will provide with examples of various IAM policies to execute various ECS under your IAM role.
You can copy those policies and adapt them to your specific use case with the actions that you need to do from boto3.
Best,
Didier
相關內容
- AWS 官方已更新 2 年前
Have you read this: https://repost.aws/knowledge-center/ecs-tasks-stuck-pending-state