Amazon web services amazon aws docker注册表的ecr令牌错误
以下是我的用户注册表策略:Amazon web services amazon aws docker注册表的ecr令牌错误,amazon-web-services,docker,Amazon Web Services,Docker,以下是我的用户注册表策略: { "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1494526914000", "Effect": "Allow", "Action": [ "ecr:GetAuthorizationToken" ], "Resource"
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1494526914000",
"Effect": "Allow",
"Action": [
"ecr:GetAuthorizationToken"
],
"Resource": [
"*"
]
}
]
}
我没有MFA认证
但当我尝试时:
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中使用该用户的密钥?作为测试,它是否使用托管策略AmazonEC2ContainerRegistryPowerUser工作