ecr-pull-policy.json

json1 kB21 linesIn assignment_1_solution.zip

assignment_1_solution.zipawsiamecr-pull-policy.json

JSON
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "GetRegistryLoginToken",
      "Effect": "Allow",
      "Action": "ecr:GetAuthorizationToken",
      "Resource": "*"
    },
    {
      "Sid": "PullOnlyCampusEventsRepo",
      "Effect": "Allow",
      "Action": [
        "ecr:BatchCheckLayerAvailability",
        "ecr:BatchGetImage",
        "ecr:GetDownloadUrlForLayer"
      ],
      "Resource": "arn:aws:ecr:<region>:<account-id>:repository/campus-events"
    }
  ]
}

In iam/