Skip to content

Instantly share code, notes, and snippets.

@xynova
Created April 22, 2018 06:05
Show Gist options
  • Save xynova/c9338a5cbd91443604d583b138e68bf5 to your computer and use it in GitHub Desktop.
Save xynova/c9338a5cbd91443604d583b138e68bf5 to your computer and use it in GitHub Desktop.
ECR Registry Pull-Only Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ecr:GetAuthorizationToken"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ecr:GetDownloadUrlForLayer",
"ecr:BatchGetImage",
"ecr:BatchCheckLayerAvailability"
],
"Resource": "arn:aws:ecr:ap-southeast-2:<<<ACCOUNT_ID>>>:*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment