AWS ECR, Permit Cross Account Image Download

Feb 16, 2022

0

Share this article

{{ }} Substitute variables

Adjust the variable values according to your preference.

Policy Code

1{
2  "Version" : "2008-10-17",
3  "Statement" : [
4    {
5      "Sid" : "Allow account B, C to access this ECR",
6      "Effect" : "Allow",
7      "Principal" : {
8        "AWS" : [
9          "arn:aws:iam::{{remote-account-1-id}}:root",
10          "arn:aws:iam::{{remote-account-2-id}}:root"
11        ]
12      },
13      "Action" : [
14        "ecr:GetDownloadUrlForLayer",
15        "ecr:BatchGetImage",
16        "ecr:BatchCheckLayerAvailability"
17      ]
18    }
19  ]
20}
    img

    Related Policies

    POLICY

    AWS ECR: Permit Cross Account Image Upload

    Grant n AWS accounts, any principal, to connect to ECR resource and upload image...

    Mar 07, 2022

    0
    POLICY

    Principal Policy - Permit Access to Cross-Account Secret and...

    Policy for principal (User, Service) to access cross-account secret and KMS CMK...

    Feb 16, 2022

    0
    img

    Join the beta waitlist

    Enter your email to get notified when our product becomes available to try.

    Sign Up for the community

    Create your member profile to get involved with our content, programs, and events.