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 can check if ECR image exists by URI?