We created an external feed pointing to AWS ECR, with credentials from
aws ecr get-login --region $AWS_REGION --registry-ids $AWS_ACCOUNT_ID
Above credentials work fine in browser: https://AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/v2/_catalog opens fine and shows json with repos.
However, when testing the feed or creating a deployment step in Octopus, there’s an error:
The V2 feed at 'https://AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/FindPackagesById()?id='package-id'' returned an unexpected status code '401 Unauthorized'
What could be the problem? We’re following the steps at https://octopus.com/docs/deploying-applications/docker-containers/registries/amazon-ec2-container-services