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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With