Tell us about your request
Currently a repository URI looks like this: <account_id>.dkr.ecr.<region>.amazonaws.com/<repository>. Account ID and region might be movable parts which has negative effects for the following scenarios described. It would be helpful to be able to define an alternate URI for ECR repositories.
Which service(s) is this request for?
ECR, (.. and maybe other container services?)
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
Our team provides a docker image for ~12 other teams that acts as a build tool for frontend resources within their pipelines. We identified different disaster recovery scenarios where the current ECR URI is a disadvantage:
(1) Unavailability of ECR within the specified region
(2) Disaster recovery for the ECR account
An alternate repository URI could be a fixed interface for other consumers. Changes for account ID or region behind this part would not affect them anymore.
Are you currently working around this issue?
One way we had seen to "solve" this, is to use an nginx as reverse proxy for the ECR, but this is an effort we don`t want to practice.
Additional context
This topic from January 2016 also describes some pain points with this.
Attachments
all my docker images have an ARG for the account id, so i can and do easily replace it to point to different accounts
all my docker images have an ARG for the account id, so i can and do easily replace it to point to different accounts
This is fine if you are the only consumer - but with dependencies to around 12 other teams, you would always have to share this, even this could be solved more easily.
This is a great idea, and it's something we've planned for as we made other networking changes such as VPC Endpoint support. We see a bunch of additional benefits. For example, your developers will be able to use a friendly URI like "repo.mycompany.com" instead of having to remember an AWS account number. Also, if you run your own registry today, and you want to switch to ECR so that you don't have to manage (upgrade, monitor, scale, etc.) it, then DNS might help with the transition.
We are interested in hearing more about how customers would like to manage SSL certificates and DNS. Would you use AWS Certificate Manager (ACM) for certs? Would you create a Route 53 hosted zone for the subdomain?
@jtoberon ACM for sure.
We already have hosted zones on route53
@jtoberon yes we would use ACM and different hosted zones.
@jtoberon
if you run your own registry today, and you want to switch to ECR ...., then DNS might help with the transition.
^ This is exactly the scenario we are in. If ECR supported custom DNS the switch would be relatively painless. Without custom DNS, there are a number of pain points:
And all of that is on top of the wacky authentication requirements for ECR. Y'all are not helping folks with established (but standard) authentication workflows or existing registries. The pain level goes up with the scale of the established operation. But those big registry users also seem like they would be the juicier targets for y'all, right?
@okor Currently, we're tentatively planning to work on this after cross region replication. What established authentication workflows do you have in mind?
When is the work going to start on this?
Interested to contribute to make this live. ✋
Have to dog pile on this one.
I too have wanted this to be officially supported for awhile.
It is possible with an NGinx proxy.
Or API gateway + lambda
NOTE: you can't use the standard docker credential helper however, it has a regex that expects the default repo URIs
It looks like this was already requested back in early 2016 here: https://forums.aws.amazon.com/thread.jspa?threadID=223934&start=25&tstart=0
But unfortunately, the team at Amazon have been very quiet about when we can expect a fix for this.
+1.
We'd like to use ACM for the cert, but probably not route53 for DNS and instead cloudflare (simply because that's what we already do for the domain).
+850
+1
This would definitely be very useful and would save our repositories and documentations from getting cluttered with a long ECR URL that has an account number in it.
+1
+1
+1
(Purposefully not leaving a reaction, as I want to get notified when this is updated.)
You can subscribe to the issue to receive notifications instead of commenting.
+1
+1
Most helpful comment
+1