How to check if ECR image exists by URI?

0

How can I check if an image exists in ECR using AWS CLI given its URI like:

xxxxxxxxxxxx.dkr.ecr.us-west-2.amazonaws.com/ai-api:2022-08-25T23-10-58-main

?

I've tried describe-images with parameters --image-ids, but it can only accept --image-ids imageDigest=string,imageTag=string ..., no URI option.

Do you have a script that I can check if the ECR image exists by URI?

1 Antwort
0
Akzeptierte Antwort

Trying to use AWS CLI is a wrong way.

We should use docker manifest inspect to check whether the image exists.

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen