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.

  • .Net Core with Docker on EC2 tutorial problems
  • How to upload next version of code on amazon AWS which has docker instance?
  • User-data script not executed when starting EC2 instance from AWS CLI
  • Error Docker deployment in Amazon EC2 - Docker container quit unexpectedly
  • How can I setup Docker container with individual IP address on EC2 instance?
  • Where are the security cert files for TLS Client (Golang) on AWS in Docker?
    • 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?

  • What is the interaction of Docker's CpuShares between containers?
  • How to set up a volume linked to S3 in Docker Cloud with AWS?
  • Docker - unable to link container
  • Is there any benefit to running docker containers on different Amazon servers?
  • How do you share privileged information with a docker container deployed as a worker on elastic beanstalk?
  • Docker registry on EC2
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.