amazon-ecr-plugin icon indicating copy to clipboard operation
amazon-ecr-plugin copied to clipboard

login failing for Amazon ECR public repository

Open ravikishore1979 opened this issue 2 years ago • 2 comments

docker.withRegistry fails to login for a public repository but works with the private repository. Can we use this plugin to login to the Amazon ECR public repository?

ravikishore1979 avatar Nov 02 '23 13:11 ravikishore1979

I am facing this issue too. Pushing to Public ECR registry with this plugin doesn't work. Works fine for private ones. I could not find any clarification regarding this in the readme either.

Tesseract99 avatar Dec 25 '23 11:12 Tesseract99

Public and private ECR repositories use completely different API endpoints and IAM objects (ecr:GetAuthorizationToken vs. ecr-public:GetAuthorizationToken), so this is no surprise. One could probably extend this plugin to support both (with a new "mapping prefix"), but it won't work out-of-the-box.

I'm not interested in implementing this myself, but I might merge an extension to this plugin (preferably with tests & without too much code duplication)

TobiX avatar Jul 17 '24 20:07 TobiX