To allow Amazon ECS to manage your containers, it needs specific permissions. We must create an IAM Role that authorizes the ECS agent to pull container images from Amazon ECR and send logs to Amazon CloudWatch on your behalf.
Step 1: Trusted Entity
AWS service.Elastic Container Service.Elastic Container Service Task from the options below.Step 2: Add Permissions
AmazonECSTaskExecutionRolePolicy.Step 3: Name and Review
ecsTaskExecutionRole.
Once created, this role is ready to be assigned to our ECS Task Definitions in the upcoming sections.