-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renovate fails to get Docker tags from AWS ECR #3800
Comments
How would we detect? Eg consistent domain suffix? |
Hey, @rarkins. Thanks for taking interest :D Looking at the docs for AWS ECR registries, they say:
In their example, This suggests the URL can be changed, but I am not sure how common changing the URL is. If detection is still a desirable approach, then I think the following regex might work: const exampleRegistry = '123456789.dkr.ecr.us-east-1.amazonaws.com';
const AWS_ECR_REGEX = /\d+\.dkr\.ecr\.[-a-z0-9]+\.amazonaws\.com/;
AWS_ECR_REGEX.test(exampleRegistry); // true |
@erikkrieg thanks for the additional info. Are you able to paste the full error message from the log? i.e. that you already copy pasted from earlier? One other possibility to consider is that we catch that error and retry with 1000 instead of 10000. I'd also like to see the headers that are returned in such a case. Also, are you able to manually query the URL with a low |
I've run into the same thing, here is the full error I'm getting:
|
It sounds like we can either:
|
🎉 This issue has been resolved in version 19.22.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What Renovate type are you using?
Renovate CLI
Describe the bug
When trying to get Docker image tags from AWS ECR, the request is rejected because the
maxResults
exceeds the limits for ECR.Here you can see the query parameter,
n
, being set to10000
:renovate/lib/datasource/docker/index.js
Line 263 in d501790
AWS ECR will reject the request with the following:
I found reference to
maxResults
in AWS docs for ECR that state they accept values less than or equal to1000
.Expected behaviour
Renovate should be able to integrate with AWS ECR. This value should either be:
Probably the first two options are safer, since behaviour would not change for existing implementations.
The text was updated successfully, but these errors were encountered: