2 Answers
- Newest
- Most votes
- Most comments
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.
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
Relevant content
- Accepted Answerasked a year ago
- asked 3 years ago
- asked a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
Have you read this: https://repost.aws/knowledge-center/ecs-tasks-stuck-pending-state