containers-roadmap icon indicating copy to clipboard operation
containers-roadmap copied to clipboard

[ECR] [request]: Repository create on push

Open rpnguyen opened this issue 4 years ago • 31 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request When pushing an image, create the repository automatically if it doesn't exist.

Which service(s) is this request for? ECR

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? Before pushing an image, I need to first create the repository which adds friction.

Are you currently working around this issue? Creating the repository before push

Additional context

  • https://github.com/awslabs/amazon-ecr-credential-helper/issues/209
  • https://stackoverflow.com/questions/51028677/create-aws-ecr-repository-if-it-doesnt-exist

rpnguyen avatar Apr 24 '20 00:04 rpnguyen

It would be very useful if auto created repositories could also have resource policies attached when they are created.

joshrivers avatar Nov 04 '20 01:11 joshrivers

@joshrivers thanks for the great input! We're thinking of doing that as part of #799

rpnguyen avatar Dec 11 '20 09:12 rpnguyen

This feature works really well in artifactory and nexus and would be helpful in automated scripts if pushing to ECR. Right now if the entire path does not exist and you try to push into ECR, an EOF error is thrown which is not very easy to debug if you are coming from one of these other products where this feature is baked into docker push.

sputmayer avatar Dec 21 '21 22:12 sputmayer

Just to add, this is something other cloud providers support (GCP) and makes them (GCR) a much better host for images in our multi cloud setup.

michaelasper avatar Dec 21 '21 23:12 michaelasper

Hi any update on this ??

ArsalanSaleem94 avatar Mar 10 '22 21:03 ArsalanSaleem94

+1 for the feature. I can't imagine why AWS already didn't implement this, atleast as a optional setting in ECR. This improves developer experience hugely.

sumanthkumarc avatar Jun 09 '22 07:06 sumanthkumarc

+1 Auto-Create Repository on Push is really expected and important feature from registry service, it is really critical to have it from the box (like the other competitors have) AWS team - please implement that feature for your community! Thanks!

alem5 avatar Jul 04 '22 22:07 alem5

+1 I really need this feature

Hargeek avatar Jul 13 '22 03:07 Hargeek

This is the largest blocker for us in fully transitioning to ECR.

Unbelievable it doesn't exist yet...

MichaelErmer avatar Jul 15 '22 09:07 MichaelErmer

+1 any update on this?

johan-vromo avatar Aug 21 '22 15:08 johan-vromo

+1 we really need this feature

satya-dillikar avatar Aug 30 '22 17:08 satya-dillikar

+1 would love to see this as well.

kg6zjl avatar Sep 30 '22 05:09 kg6zjl

+1 it is a blocker for me to move to ECR completely. would love to get an update if this featrure will be added.

gasiorroiasg avatar Oct 05 '22 10:10 gasiorroiasg

We really need this feature as well, otherwise we simply cant use ecr. I really hope this gets added soon as i would love to use ecr but simply cant add this overhead in our scenario

vrabbi avatar Oct 26 '22 04:10 vrabbi

+1 for that feature. Can't believe it does not exist 🤦🏻

vladimir259 avatar Nov 25 '22 11:11 vladimir259

+1 Absolute blocker to using ECR! We need this feature enhancement.

ynamadi avatar Dec 05 '22 15:12 ynamadi

Please please please make it so! All other repositories have this feature which makes integrations with ECR a bear.

heyjcollins avatar Dec 10 '22 00:12 heyjcollins

I don't understand how this is so hard, this text is in the beginning of every issue, and is applies to a lot more than just this AWS repo:

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

It's very disappointing to get updates as a follower on this issue with yet another person writing pointless comments. Ironically quite a few people that left +1 comments haven't even given a thumbs up so their voice is not even heard.

That will help make the issue more visible when maintainer sort by 👍-reactions, which is what they do..

image

(example)

If you are truly interested in getting priority bumped for repos that use systems like this just click the good damn 👍 button on the issue (the post at the top) and be happy 😄

Anyway sorry for contributing to the notifications and the rant..

Flydiverny avatar Dec 10 '22 21:12 Flydiverny

+1

alexlokshin-czi avatar Feb 07 '23 22:02 alexlokshin-czi

Hi everyone. I apologize for being late to update on this one. We absolutely hear that this is a feature that many customers would like to see. The 'under consideration' tag still applies, and hopefully we provide more updates soon.

By design, ECR has not had create on push as a number of features and configuration options exist for repositories. Settings for these features, from access controls to tag immutability to encryption have a default of 'none', for security reasons. So we need to sort that out before we create repos that aren't useful for most use cases.

Our plan is still to leverage registry-scoped configuration profiles, see #799 . This was the idea a while back and it still makes sense, but we needed to do some initial work in the service. At this point, we're starting to scope this out. I know it's been a while, thanks for your patience and we do hear you.

We'll share more when we have some tangible news to share. Thanks all!

jlbutler avatar Feb 28 '23 03:02 jlbutler

I love AWS in general, but just so you know, this works fine in Google Cloud Container Registry.

simonlsk avatar May 03 '23 12:05 simonlsk

@jlbulter Thank you for your detailed response! I appreciate hearing you all are actively working on this issue. Do you think this feature could potentially be released by the end of Q4 2023? No rush at all (workaround in the link below), I was just curious if there are any updates.

For the time being, I will use the suggestion listed: https://stackoverflow.com/questions/51028677/create-aws-ecr-repository-if-it-doesnt-exist

Thank you again for your time, @skchronicles

skchronicles avatar Jun 27 '23 18:06 skchronicles

Hi All, we are working on this. We'll provide an update on the progress at a later date.

hsejour avatar Jun 28 '23 14:06 hsejour

@hsejour any update on this? :) :)

bdw617 avatar Oct 06 '23 20:10 bdw617

+1. Still waiting. Clearly there's a lot of interest.

heyjcollins avatar Oct 09 '23 16:10 heyjcollins

May I suggest this should work in combination with the new repository templates feature?

To be clear now repository templates works only when it's AWS automation that are creating the repo. E.g. A pull through cache repo is created automatically (when the corresponding image is pulled by a client) and the template is applied.

However the template does not apply when I create a repo manually with the cli

matteosilv avatar Dec 20 '23 17:12 matteosilv

Would love to have this feature. It would speed up development a lot.

vikinghts avatar Jan 16 '24 14:01 vikinghts

This is by default in google cloud

satyam7world avatar Jan 21 '24 05:01 satyam7world

+1

brianbraunstein avatar Feb 28 '24 21:02 brianbraunstein

+1

ChalakaNuwan avatar Mar 08 '24 03:03 ChalakaNuwan