Difference between revisions of "AllowPushPull"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
  
  
Official examples: https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html
+
Official example: https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html
<pre>
+
 
{
+
{
 
     "Version": "2012-10-17",
 
     "Version": "2012-10-17",
 
     "Statement": [
 
     "Statement": [
Line 16: Line 16:
 
             },
 
             },
 
             "Action": [
 
             "Action": [
                 "ecr:BatchGetImage",
+
                 "[[ecr:BatchGetImage]]",
                 "ecr:BatchCheckLayerAvailability",
+
                 "[[ecr:BatchCheckLayerAvailability]]",
                 "ecr:CompleteLayerUpload",
+
                 "[[ecr:CompleteLayerUpload]]",
                 "ecr:GetDownloadUrlForLayer",
+
                 "[[ecr:GetDownloadUrlForLayer]]",
                 "ecr:InitiateLayerUpload",
+
                 "[[ecr:InitiateLayerUpload]]",
                 "ecr:PutImage",
+
                 "[[ecr:PutImage]]",
                 "ecr:UploadLayerPart"
+
                 "[[ecr:UploadLayerPart]]"
 
             ]
 
             ]
 
         }
 
         }
 
     ]
 
     ]
}
+
}
</pre>
 
  
  
 +
== See also ==
 +
* {{ECR}}
  
{{ECR}}
+
[[Category:ECR]]

Latest revision as of 10:11, 15 October 2024


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[edit]

Advertising: