Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS ECR user is not authorized to perform: ecr-public:GetAuthorizationToken on resource: *

I am facing the following issue when attempting to retrieve an authentication token and authenticate your Docker client to your registry:

user is not authorized to perform: ecr-public:GetAuthorizationToken on resource: *

I was able to push an image to my private repository just fine without issue. I am using an EC2 ubuntu image to perform these push commands found in AWS dashboard. I made sure the user has role: AmazonEC2ContainerRegistryFullAccess

like image 990
dataviews Avatar asked Jan 21 '26 11:01

dataviews


1 Answers

I found the following roles to work. Make sure you attach these policies to your group or user in IAM:

Private registry: AmazonEC2ContainerRegistryFullAccess

Public registry: AmazonElasticContainerRegistryPublicFullAccess

like image 58
dataviews Avatar answered Jan 22 '26 23:01

dataviews



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!