AWS ECR GetAuthorizationToken

前端 未结 8 759
星月不相逢
星月不相逢 2021-02-06 20:33

I\'ve tried to follow AWS instructions on setting ECR authorization to my user by giving the AmazonEC2ContainerRegistryFullAccess policy to my user.

However

相关标签:
8条回答
  • 2021-02-06 21:09

    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

    0 讨论(0)
  • 2021-02-06 21:11

    I have the same problem, but I have set the permission boundary only to s3 previously that causes the issue.

    Removed the permission boundary ,it worked like a charm

    0 讨论(0)
  • 2021-02-06 21:18

    I had the same problem with ECS when I tried to push my container in the repository.

    To solve it, I attached to my IAM role this : AmazonECS_FullAccess

    0 讨论(0)
  • 2021-02-06 21:22

    Just as it appears in the error description, I have to allow action "GetAuthorizationToken" in my policy.

        {
            "Sid": "VisualEditor2",
            "Effect": "Allow",
            "Action": "ecr:GetAuthorizationToken",
            "Resource": "*"
        }
    

    Note: This is not my full policy but a subsection of Statement.

    0 讨论(0)
  • 2021-02-06 21:24

    This was my guy EC2InstanceProfileForImageBuilderECRContainerBuilds

    0 讨论(0)
  • 2021-02-06 21:26

    You must attach a policy to your IAM role.

    I attached AmazonEC2ContainerRegistryFullAccess and it worked.

    0 讨论(0)
提交回复
热议问题