Skip to content

Commit

Permalink
fix: allow OIDC ECR role to pull images (#1446)
Browse files Browse the repository at this point in the history
Update the OIDC ECR role's permission policy to
allow it to pull images as well.

This is needed for the Docker SBOM workflow step.
  • Loading branch information
patheard authored Sep 26, 2023
1 parent 2a03e10 commit 3a6ac24
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions infrastructure/terragrunt/aws/ecr/oidc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,17 @@ data "aws_iam_policy_document" "ecr_push" {
statement {
effect = "Allow"
actions = [
"ecr:BatchCheckLayerAvailability",
"ecr:BatchGetImage",
"ecr:CompleteLayerUpload",
"ecr:UploadLayerPart",
"ecr:DescribeImages",
"ecr:DescribeRepositories",
"ecr:GetDownloadUrlForLayer",
"ecr:GetRepositoryPolicy",
"ecr:InitiateLayerUpload",
"ecr:BatchCheckLayerAvailability",
"ecr:PutImage"
"ecr:ListImages",
"ecr:PutImage",
"ecr:UploadLayerPart"
]
resources = [
aws_ecr_repository.wordpress.arn
Expand Down

0 comments on commit 3a6ac24

Please sign in to comment.