Skip to content

Commit

Permalink
Merge pull request #34 from michaeldeggers/update-permissions
Browse files Browse the repository at this point in the history
allow ecr auth for public aws repos - service bearer tokens
  • Loading branch information
michaeldeggers authored Dec 23, 2023
2 parents bba38f6 + a49f412 commit 9d6c6fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,11 @@ resource "aws_iam_role" "deploy" {
"arn:aws:iam::${var.aws_account_id}:instance-profile/eggs-projects-*"
]
},
# Public ECR Repo Auth permissions
{
Action = [
"ecr-public:GetAuthorizationToken"
"ecr-public:GetAuthorizationToken",
"sts:GetServiceBearerToken"
]
Effect = "Allow"
Resource = "*"
Expand Down

0 comments on commit 9d6c6fb

Please sign in to comment.