AllowPushPull

From wikieduonline
Revision as of 10:11, 15 October 2024 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Official example: https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html

{
   "Version": "2012-10-17",
   "Statement": [
       {
           "Sid": "AllowPushPull",
           "Effect": "Allow",
           "Principal": {
               "AWS": [
                   "arn:aws:iam::account-id:user/push-pull-user-1",
                   "arn:aws:iam::account-id:user/push-pull-user-2"
               ]
           },
           "Action": [
               "ecr:BatchGetImage",
               "ecr:BatchCheckLayerAvailability",
               "ecr:CompleteLayerUpload",
               "ecr:GetDownloadUrlForLayer",
               "ecr:InitiateLayerUpload",
               "ecr:PutImage",
               "ecr:UploadLayerPart"
           ]
       }
   ]
}


See also

Advertising: