Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 1 KB

README.md

File metadata and controls

35 lines (31 loc) · 1 KB

Optional Permissions

You may or may not want people to be able to list tags and/or list all available repositories within an account.

  • List Image Tags - ecr:ListImages - /v2/imageName/tags/list
  • List Repositories - ecr:DescribeRepositories - /v2/_catalog
    • NOTE: List Repositories only works for the account in which the proxy service is running.

Cross-Account Access

You can prefix your image name with an Account ID to achieve cross-account access.

docker pull ecr.proxy.org/123456789876/myimage:latest

You must also grant permissions from the target ECR repository to the IAM role of the ECR Proxy.

{
  "Version": "2008-10-17",
  "Statement": [
    {
      "Sid": "Allow proxy to pull",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::123456789876:role/ecr_proxy"
      },
      "Action": [
        "ecr:BatchCheckLayerAvailability",
        "ecr:BatchGetImage",
        "ecr:GetDownloadUrlForLayer",
        "ecr:ListImages"
      ]
    }
  ]
}