Skip to content

Commit

Permalink
feat: Add ECR permissions to push on Github Runners (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
toninis authored Feb 6, 2025
1 parent df47356 commit 82aac16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aws/github-runner/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,8 @@ resource "aws_iam_role_policy_attachment" "attach_github_secrets_policy" {
policy_arn = aws_iam_policy.github_secrets_policy.arn
}

resource "aws_iam_role_policy_attachment" "attach_ecr_managed_policy" {
role = aws_iam_role.github_secrets_role.name
policy_arn = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryPowerUser"
}

0 comments on commit 82aac16

Please sign in to comment.