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
Have you read this: https://repost.aws/knowledge-center/ecs-tasks-stuck-pending-state