Skip to content

Commit

Permalink
Merge pull request #4 from ministryofjustice/ecr-read-all
Browse files Browse the repository at this point in the history
User should have read permissions across the registry
  • Loading branch information
alkar authored Jul 24, 2018
2 parents aaecd0a + b188c8a commit 13c0c52
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,9 @@ resource "aws_iam_access_key" "key" {
data "aws_iam_policy_document" "policy" {
statement {
actions = [
"ecr:GetDownloadUrlForLayer",
"ecr:BatchGetImage",
"ecr:CompleteLayerUpload",
"ecr:DescribeImages",
"ecr:DescribeRepositories",
"ecr:UploadLayerPart",
"ecr:ListImages",
"ecr:InitiateLayerUpload",
"ecr:BatchCheckLayerAvailability",
"ecr:GetRepositoryPolicy",
"ecr:PutImage",
]

Expand All @@ -42,6 +35,13 @@ data "aws_iam_policy_document" "policy" {
statement {
actions = [
"ecr:GetAuthorizationToken",
"ecr:BatchCheckLayerAvailability",
"ecr:GetDownloadUrlForLayer",
"ecr:GetRepositoryPolicy",
"ecr:DescribeRepositories",
"ecr:ListImages",
"ecr:DescribeImages",
"ecr:BatchGetImage",
]

resources = [
Expand Down

0 comments on commit 13c0c52

Please sign in to comment.