AWS ECR: Permit Cross Account Image Upload

Mar 07, 2022

0

Share this article

{{ }} Substitute variables

Adjust the variable values according to your preference.

Policy Code

1{
2  "Version": "2012-10-17",
3  "Statement": [
4    {
5      "Sid": "AllowCrossAccountPush",
6      "Effect": "Allow",
7      "Principal": {
8        "AWS": "arn:aws:iam::{{remote-account-id}}:root"
9      },
10      "Action": [
11        "ecr:BatchCheckLayerAvailability",
12        "ecr:CompleteLayerUpload",
13        "ecr:InitiateLayerUpload",
14        "ecr:PutImage",
15        "ecr:UploadLayerPart"
16      ]
17    }
18  ]
19}
    img

    Related Policies

    POLICY

    AWS ECR, Permit Cross Account Image Download

    Grant n other accounts access to this ECR, account-wide. Use more specific princ...

    Feb 16, 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.