I’m trying to move my applications to use an ECR container registry rather than pointing them at a git repository. Setting this up has been working just fine all week, until it stopped working today. When I try to set up the application, I can choose my registry and enter the image name, but then it spins for a while and errors out before I can select a tag:
Typing a tag into that box doesn’t help, even if the tag exists.
In the browser dev tools, I can see that it’s trying to get the images like this:
https://api.qovery.com/organization/XXXXX-0b18-45c5-9c33-6f1981bc70ff/containerRegistry/XXXXXX-764d-41ea-8fbd-295a3199f4b6/images?imageName=grayce_api
which keeps returning errors like this:
{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "Cannot fetch image grayce_api: getImageTags(...) must not be null",
"instance": "/api/organization/XXXXXX-0b18-45c5-9c33-6f1981bc70ff/containerRegistry/XXXXX-764d-41ea-8fbd-295a3199f4b6/images",
"message": "Cannot fetch image grayce_api: getImageTags(...) must not be null"
}
I have 4 repositories in ECR, and this works fine for 2 of them but breaks for the other 2. It works when I put in the image name as “grayce_frontend” or “grayce_elasticsearch” but fails when I use “grayce_api” or “grayce_community_api”. The IAM user whose credentials I’ve provided in the Qovery registries definitely has access to all 4 of these repositories. I tried giving the IAM user wildcard access to all of ECR but that didn’t help. There is no real difference in how the repositories are set up in ECR. At this point I’m pretty stuck and unable to create applications.
FWIW, also setting this up is a bit confusing because the “Image name” field wants you to put in the name of what ECR calls a “Repository”. It would be a bit less confusing if the labels could change to reflect that for ECR repositories.