Difference between revisions of "Private repository policy examples in Amazon ECR"

From wikieduonline
Jump to navigation Jump to search
(Created page with " <pre> { "Version": "2012-10-17", "Statement": [ { "Sid": "AllowPushPull", "Effect": "Allow", "Principal": {...")
 
Line 1: Line 1:
  
  
<pre>
+
 
{
+
{
 
     "Version": "2012-10-17",
 
     "Version": "2012-10-17",
 
     "Statement": [
 
     "Statement": [
Line 15: Line 15:
 
             },
 
             },
 
             "Action": [
 
             "Action": [
                 "ecr:BatchGetImage",
+
                 "[[ecr:]]BatchGetImage",
 
                 "ecr:BatchCheckLayerAvailability",
 
                 "ecr:BatchCheckLayerAvailability",
 
                 "ecr:CompleteLayerUpload",
 
                 "ecr:CompleteLayerUpload",
Line 25: Line 25:
 
         }
 
         }
 
     ]
 
     ]
}
+
}
</pre>
+
 
  
  
 
{{ECR}}
 
{{ECR}}

Revision as of 14:19, 15 July 2024


{
   "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"
           ]
       }
   ]
}


ECR, aws ecr, Amazon ECR Public Gallery: public.ecr.aws, Terraform AWS ECR, Troubleshooting ECR, ecr:, ecr:ReplicateImage, ECR scanning, AllowPushPull

Advertising: