Home > Back-end >  Add a specific IAM role to the ECS task definition
Add a specific IAM role to the ECS task definition

Time:12-21

I have an ECS task running a container that requires permissions from resources, that are all a part of a specific IAM role. I am trying to add that specific role to the task definition on the console, but the only role I see is the auto-generated one by ECS.

I don't see all the IAM role in the dropdown. How do I access them? enter image description here

CodePudding user response:

When creating a new role make sure you choose elastic container service task

enter image description here

Or

If you can edit the existing role, enter the trusted entity, and edit with the following

enter image description here

  • Related