By using AWS re:Post, you agree to the Terms of Use

How to check if ECR image exists by URI?


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


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 Answer
Accepted Answer

Trying to use AWS CLI is a wrong way.

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

answered 21 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions