AWS IAM user receive 401 when accessing to ECR repository works with root user

0 votes

I've started using AWS ECR to store my docker images. When I try to authenticate an IAM user, via Powershell (the same happens when I do via AWS command line) I receive a 401:UnAuthorized. If I use the Auth key/secret of the root user, it works and authenticates.

The PowerShell script I use is

(Get-ECRLoginCommand).Password | docker login --username AWS --password-stdin 474389077978.dkr.ecr.eu-west-3.amazonaws.com/myreoi

I've replaced the AWS user with the IAM user. I've also added the IAM user to the admins, but it doesn't seem enough.

Any suggestion? Thanks in advance!

Apr 25, 2022 in AWS by Aditya
• 7,680 points
1,273 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to login to AWS Console using IAM user account ?

You can login from the login URL ...READ MORE

answered Dec 13, 2018 in AWS by Aniket
1,001 views
0 votes
1 answer
+1 vote
1 answer

How to create an IAM user in AWS?

Hi@akhtar, To create new user in AWS, you ...READ MORE

answered Jun 1, 2020 in AWS by MD
• 95,440 points
1,126 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP