404

[ Avaa Bypassed ]




Upload:

Command:

botdev@13.58.146.48: ~ $
**To set the repository policy for a repository**

The following ``set-repository-policy`` example attaches a repository policy contained in a file to the ``cluster-autoscaler`` repository. ::

    aws ecr set-repository-policy \
        --repository-name cluster-autoscaler \
        --policy-text file://my-policy.json
  
Contents of ``my-policy.json``::

    {
        "Version" : "2008-10-17",
        "Statement" : [ 
            {
                "Sid" : "allow public pull",
                "Effect" : "Allow",
                "Principal" : "*",
                "Action" : [
                    "ecr:BatchCheckLayerAvailability",
                    "ecr:BatchGetImage",
                    "ecr:GetDownloadUrlForLayer" 
                ]
            }
        ]
    }
  
Output::

    {
        "registryId": "012345678910",
        "repositoryName": "cluster-autoscaler",
        "policyText": "{\n  \"Version\" : \"2008-10-17\",\n  \"Statement\" : [ {\n    \"Sid\" : \"allow public pull\",\n    \"Effect\" : \"Allow\",\n    \"Principal\" : \"*\",\n    \"Action\" : [ \"ecr:BatchCheckLayerAvailability\", \"ecr:BatchGetImage\", \"ecr:GetDownloadUrlForLayer\" ]\n  } ]\n}"
    }

Filemanager

Name Type Size Permission Actions
batch-check-layer-availability.rst File 836 B 0644
batch-delete-image.rst File 1.29 KB 0644
batch-get-image.rst File 3.1 KB 0644
complete-layer-upload.rst File 664 B 0644
create-repository.rst File 2.25 KB 0644
delete-lifecycle-policy.rst File 647 B 0644
delete-repository-policy.rst File 675 B 0644
delete-repository.rst File 702 B 0644
describe-image-scan-findings.rst File 2.32 KB 0644
describe-images.rst File 767 B 0644
describe-repositories.rst File 612 B 0644
get-authorization-token.rst File 491 B 0644
get-download-url-for-layer.rst File 1 KB 0644
get-lifecycle-policy-preview.rst File 1.22 KB 0644
get-lifecycle-policy.rst File 888 B 0644
get-login-password.rst File 894 B 0644
get-login-password_description.rst File 914 B 0644
get-login_description.rst File 1.06 KB 0644
get-repository-policy.rst File 686 B 0644
initiate-layer-upload.rst File 344 B 0644
list-images.rst File 798 B 0644
list-tags-for-resource.rst File 433 B 0644
put-image-scanning-configuration.rst File 672 B 0644
put-image-tag-mutability.rst File 686 B 0644
put-image.rst File 6.26 KB 0644
put-lifecycle-policy.rst File 1.35 KB 0644
set-repository-policy.rst File 1.16 KB 0644
start-image-scan.rst File 810 B 0644
start-lifecycle-policy-preview.rst File 1.45 KB 0644
tag-resource.rst File 334 B 0644
untag-resource.rst File 319 B 0644
upload-layer-part.rst File 680 B 0644