I\'ve tried to follow AWS instructions on setting ECR authorization to my user by giving the AmazonEC2ContainerRegistryFullAccess policy to my user.
AmazonEC2ContainerRegistryFullAccess
However
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.