This message was deleted.
s
This message was deleted.
b
hey! Just to make sure I'm understanding you have account A with an ECS cluster and task and then account B with an ECR repository where you want to pull images from right?
f
Hey Jim, looks like this question is more about AWS rather than Pulumi? I haven’t tried this solution but it might work: https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html
Copy code
{
  "Version": "2008-10-17",
  "Statement": [
    {
      "Sid": "AllowCrossAccountPush",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::account-id:root"
      },
      "Action": [
        "ecr:GetDownloadUrlForLayer",
        "ecr:BatchCheckLayerAvailability",
        "ecr:PutImage",
        "ecr:InitiateLayerUpload",
        "ecr:UploadLayerPart",
        "ecr:CompleteLayerUpload"
      ]
    }
  ]
}
b
thanks @fierce-ability-58936
whats not clear is it looks like you can set the resource policy on the repository, but you can also set on the registry