Using AWS CLI, and jq if needed, I\'m trying to get the tag of the newest image in a particular repo.
Let\'s call the repo foo, and sa
foo
To get only latest image with out special character minor addition required for above answer.
aws ecr describe-images --repository-name foo --query 'sort_by(imageDetails,& imagePushedAt)[-1].imageTags[0]' --output text