Skip to content

Instantly share code, notes, and snippets.

@sigursoft
Last active January 5, 2020 14:24
Show Gist options
  • Select an option

  • Save sigursoft/c23de96f94c97ee9ca8b043d0dc616aa to your computer and use it in GitHub Desktop.

Select an option

Save sigursoft/c23de96f94c97ee9ca8b043d0dc616aa to your computer and use it in GitHub Desktop.
AWS ECR Push Docker Image Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ECRPushAccess",
"Effect": "Allow",
"Action": [
"ecr:GetDownloadUrlForLayer",
"ecr:BatchGetImage",
"ecr:CompleteLayerUpload",
"ecr:ListTagsForResource",
"ecr:UploadLayerPart",
"ecr:InitiateLayerUpload",
"ecr:BatchCheckLayerAvailability",
"ecr:PutImage"
],
"Resource": [
"arn:aws:ecr:<REGION>:<ACCOUNT_ID>:repository/<REPO>"
]
},
{
"Sid": "ECRAuthorization",
"Effect": "Allow",
"Action": "ecr:GetAuthorizationToken",
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment