ecr令牌错误亚马逊awsdockerregistry

这是我的用户的registry策略:

{ "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1494526914000", "Effect": "Allow", "Action": [ "ecr:GetAuthorizationToken" ], "Resource": [ "*" ] } ] } 

我没有MFAauthentication

但是当我尝试:

 bussiere@kusanagi:~/Workspace/*****$ aws ecr get-login An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:iam::*******:user/bussiere is not authorized to perform: ecr:GetAuthorizationToken on resource: * bussiere@kusanagi:~/Workspace/*****$ 

在这里输入图像说明

在这里输入图像说明

非常感谢和问候

也许没有帮助,考虑到你似乎有正确的政策,但权限是不正确的。 你有地区设置,并在cli使用该用户的密钥? 另外作为一个testing,它是否使用托pipe策略AmazonEC2ContainerRegistryPowerUser?

http://docs.aws.amazon.com/AmazonECR/latest/userguide/common-errors.html#error-unauthorized