If you have the assets for a given release, you could grep the overlays/required/transformers.yaml to identify the tag for each image associated with that release, for example:
$ grep newTag -m1 -B1 sas-bases/overlays/required/transformers.yaml
newName: cr.sas.com/viya-4-x64_oci_linux_2-docker/sas-activities
newTag: 1.53.15-20221103.1667486852217
But the version can change during a release cycle, if an update is pushed to 2024.04 for a given image and you pulled the latest assets for it, then the image tag would be different for that image than what you might have in your ECR.
Using the lifecycle option lets you instruct the ECR to remove all entries that meet given criteria, while keeping some history.
--
Greg Wootton | Principal Systems Technical Support Engineer