File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
infra/modules/agentcore-iam-role Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ resource "aws_iam_policy" "ecr_permissions" {
3232 Effect = " Allow"
3333 Action = [
3434 " ecr:BatchGetImage" ,
35- " ecr:GetDownloadUrlForLayer" ,
36- " ecr:GetAuthorizationToken"
35+ " ecr:GetDownloadUrlForLayer"
3736 ]
3837 Resource = [
3938 " arn:aws:ecr:${ data . aws_region . current . name } :${ data . aws_caller_identity . current . account_id } :repository/*"
@@ -45,9 +44,9 @@ resource "aws_iam_policy" "ecr_permissions" {
4544 Action = [
4645 " ecr:GetAuthorizationToken"
4746 ]
48- Resource = [
49- " arn: aws:ecr: ${ data . aws_region . current . name } : ${ data . aws_caller_identity . current . account_id } :* "
50- ]
47+ # This action does not accept any restrictions on the resource, per the docs:
48+ # https://docs. aws.amazon.com/service-authorization/latest/reference/list_amazonelasticcontainerregistry.html
49+ Resource = " * "
5150 }
5251 ]
5352 })
You can’t perform that action at this time.
0 commit comments