title: Could not connect to the endpoint URL: "https://api.ecr.us-west-1.amazonaws.com
body: <p>Could not connect to the endpoint URL: &quot;https://api.ecr.us-west-1.amazonaws.com&quot; when attempting to connect to ECR from an EC2 instance</p>
  <p>aws ecr list-images --repository-name myrepo</p>
  <p>ECR (Container Registry) is available in my region us-west-1 and yet I get the error</p>
  <p>I believe there are some permissions and roles and credential file tweaking activities that may resolve this.  I have created an IAM role giving full ECR access and attached it to this instance, rebooted it and yet no change.  Any help or insight or faint glimmer of hope accepted.  Thanks.</p>