ecr-push-policy.json

json1 kB25 linesIn assignment_1_solution.zip

assignment_1_solution.zipawsiamecr-push-policy.json

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

In iam/