'lastRecordedPullTime property missing in API_ImageDetail response

I am trying to delete old images from my ECR repositories. I was going to do it by deleting images, that have not been pulled longer than X days.

This API gives https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_ImageDetail.html the lastRecordedPullTime. However this property is missing on majority of images (I have hundreds of thousands of images some of them older than 5 years).

I guess this property is missing if image was never pulled, but number of these images is marginal. My theory would be, that this property is deleted after the some amount of time, during which image was not pulled. If so what is the amount?

Or is there another reason why is lastRecordedPullTime property missing?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source