I\'ve tried to follow AWS instructions on setting ECR authorization to my user by giving the AmazonEC2ContainerRegistryFullAccess policy to my user.
AmazonEC2ContainerRegistryFullAccess
However
You must attach a policy to your IAM role.
I attached AmazonEC2ContainerRegistryFullAccess and it worked.