In AWS, when I try to create a task definition, it shows nothing (I am in EU-Central region).
However when I go to IAM I do have roles that have policies needed to pull my images. How can I select one of these existing roles when creating my task def when nothing shows up in the list?
By the way this is the error:
CodePudding user response:
In AWS every role has a Trusted Entity
. This trusted entity specifies who or what can assume a role, meaning that for example a Lambda Function can not assume a role create for an ECS Task, or a human user can not assume a role create for an EC2 machine.
For an ECS task, you have a to create a role which has the trusted entity of ecs-task
:
If you have a task which has the correct trusted entity, it will show up afterwards in the dropdown.