AWS IAM Role to associate with the ECS Slave Task to grant permissions to access other AWS resources.

If your slave needs access to other AWS resources, you can create a role with appropriate policies and associate that role with the slave ECS Task.

All containers within a task have access to all permissions defined in the instance profile of the container instances. It is recommended to limit the permissions of container instances and specify service specific permissions at the task level.

See Task IAM roles for more details about task roles.