Authorization error with AWS

When trying to access an Image in ECR and spin it up(which is handled by someone else’s code) it threw error below. I wish I had more information but all I know is that code which is running on an EC2 instance is not able to spin up my container because it has a missing secret key in Authorization Header

Amazon.ECR.AmazonECRException: 'WITH:' not a valid key=value pair (missing equal-sign) in Authorization header: 'AWS4-HMAC-SHA256 Credential=SET WITH: dotnet user-secrets set RegistryConfig:AccessKeyId/20170615/us-west-1/ecr/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-target, Signature=someguid'. ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown.

  • Rsync (or ssh) to a remote docker container on EC2
  • Isolate PHP versions on AWS EC2
  • How to update docker in aws ec2
  • Sporadic Robolectric test failures when running inside Docker container
  • Stop VM with MongoDB docker image without losing data
  • Docker nfs4 mount on Elastic Beanstalk
    • My Question is that where do I find these keys?
    • If I do aws configure on my ec2 instance, it is having a key set up already
    • Do I need to pass it to the Docker Container that I am trying to spin up?
    • If yes, the what is the best way to pass these values?

  • Django migrations with Docker on AWS Elastic Beanstalk
  • How to configure a GlassFish instance running on AWS/ElasticBeanstalk/Docker?
  • Docker pushing containers to private registry
  • Creating kubernetes cluster inside an existing VPC in AWS
  • How to tag a image(.tar) file of docker(container) while loading into other host?
  • Docker image behaves different on different machines
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.