本文介绍了AWS ECR GetAuthorizationToken的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图通过向用户提供 AmazonEC2ContainerRegistryFullAccess
策略来为用户设置ECR授权,以遵循AWS指示。
I've tried to follow AWS instructions on setting ECR authorization to my user by giving the AmazonEC2ContainerRegistryFullAccess
policy to my user.
但是,当我尝试在PC上运行 aws ecr get-login
时,出现了我没有权限的错误。
However when I try to run on my PC the aws ecr get-login
I get an error that I don't have permission.
An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:iam::ACCOUNT_NUMBER:user/MY_USER is not authorized to perform: ecr:GetAuthorizationToken on resource: *
我做错了什么?
推荐答案
我发现,启用2FA后,一旦我从自己的2FA中删除了2FA,就没有使用aws ecr get-login的选项。我获得授权令牌的帐户
I've found out that when 2FA is enabled there is no option to use the aws ecr get-login, once I've removed the 2FA from my account I got the authorization token
这篇关于AWS ECR GetAuthorizationToken的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!