Using Amazon ECR Images with Amazon ECS

You can use your ECR images with Amazon ECS, but you need to satisfy some prerequisites:

Your container instances must be using at least version 1.7.0 of the Amazon ECS container
agent. The latest version of the Amazon ECS–optimized AMI supports ECR images in task
definitions. For more information, including the latest Amazon ECS–optimized AMI IDs,
see Amazon ECS Container Agent
Versions in the Amazon Elastic Container Service Developer Guide.

The Amazon ECS container instance role (ecsInstanceRole) that you use with
your container instances must possess the following IAM policy permissions for
Amazon ECR.

If you use the AmazonEC2ContainerServiceforEC2Role managed policy for
your container instances, then your role has the proper permissions. To check that
your
role supports Amazon ECR, see Amazon ECS Container Instance IAM
Role in the Amazon Elastic Container Service Developer Guide.

In your ECS task definitions, make sure that you are using the full
registry/repository:tag naming for your ECR images. For example,
aws_account_id.dkr.ecr.region.amazonaws.com/my-web-app:latest.