I'm trying to use a Docker resource that is stored in an AWS EC2 Container service repository (ECR). Config looks like:
- name: my-docker-resource
type: docker-image
source:
repository: account-id.dkr.ecr.eu-west-1.amazonaws.com/my-repo
tag: d196e5688d
aws_access_key_id: ((docker-aws-access-key-id))
aws_secrey_access_key: ((docker-aws-secret-access-key))
When I run a pipeline that does get
on this resource, I see "no versions available".
I tried to verify that the credentials I'm using is allowed to access the repo:
$(aws ecr get-login --no-include-email --profile concourse)
You must specify a region. You can also configure your region by running "aws configure".
So question 1: How do I tell the resource which region to use? Does it guess from the repo URL? Providing the region seems to indicate credentials have enough privileges:
$(aws ecr get-login --no-include-email --profile concourse --region eu-west-1)
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Login Succeeded
I then try to pull the repo. Works on my machine (tm). Pipeline still says "no versions available".
I read somewhere that custom repos need to explicitly state the port, so I also tried account-id.dkr.ecr.eu-west-1.amazonaws.com:5000
, but to no avail. Using that in the tag also does not work at all locally.
Any pointers?