When I deploy using API from AWS ECR, it works for me ONLY if the image repository is EMPTY in AWS or if there is only ONE image (“latest”). It does NOT work if there are more than one image in the ECR.
If there are more than one image, I get the error that it could not find the “latest” tag when I try to deploy.
For now I use an temporary workaround and delete all images from AWS ECR before pushing a new “latest” image.
I can also add that the result is the same if the other images are untagged or if they have a unique tag such as commit id, also if the “latest” image has a commit id tag or not does not seem to matter, only the amount of images in the ECR seem to matter.