From 82aac16be94a50c9938117b7ecda90107dfe9a96 Mon Sep 17 00:00:00 2001 From: Antonis Stamatiou Date: Thu, 6 Feb 2025 20:53:25 +0200 Subject: [PATCH] feat: Add ECR permissions to push on Github Runners (#815) --- aws/github-runner/iam.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aws/github-runner/iam.tf b/aws/github-runner/iam.tf index 7de06d7c..5679f1e1 100644 --- a/aws/github-runner/iam.tf +++ b/aws/github-runner/iam.tf @@ -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" +} +