AccessDeniedException when uploading your image to Amazon Elastic Container Registry (Amazon ECR)
If you get an AccessDeniedException
error when you try to
upload your container image to Amazon ECR, your IAM identity (user or role)
might not have the necessary permissions to use Amazon ECR.
You can attach the AmazonEC2ContainerRegistryPowerUser
AWS
managed policy to your IAM identity and try again.
For more information about how to attach a policy, see Adding and
removing IAM identity permissions in the AWS Identity and Access Management User Guide.