Home > front end >  Task role not found in aws
Task role not found in aws

Time:03-30

In AWS, when I try to create a task definition, it shows nothing (I am in EU-Central region).

notfound

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?

roles list

By the way this is the error:

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:

enter image description here

If you have a task which has the correct trusted entity, it will show up afterwards in the dropdown.

  • Related