I\'ve tried to follow AWS instructions on setting ECR authorization to my user by giving the AmazonEC2ContainerRegistryFullAccess policy to my user.
AmazonEC2ContainerRegistryFullAccess
However
I have the same problem, but I have set the permission boundary only to s3 previously that causes the issue.
permission boundary
Removed the permission boundary ,it worked like a charm