Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Task role not found in aws

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

roles list

By the way this is the error:

error

>Solution :

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading