ecr:TagResource is a Tagging access-level action in the ecr service. Grants permission to tag an Amazon ECR resource
ARNs that ecr:TagResource can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants ecr:TagResource.
Filters access by tag-value associated with the resource
Filters access by tag-value associated with the resource
A minimal policy that allows ecr:TagResource. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowEcrTagResource",
"Effect": "Allow",
"Action": "ecr:TagResource",
"Resource": "*"
}
]
}