AWS ECR - How to get last-pull-datetime per repository?

I need to set a Lifecycle policy, and I want to determine the rules by checking last-pull-datetime, per repository.

This feature comes out-of-the-box in DockerHub, is there a way to get this type of information in AWS ECR (Elastic Container Registry)? I’ve Google a lot about it and haven’t found anything.

Here’s how it looks like in DockerHub -

The API call - https://docs.docker.com/docker-hub/api/latest/#operation/GetNamespacesRepositoriesImages returns “last_pulled”

This is a big feature that has been missing from ECR since the inception of lifecycle policies, you could implement some sort of custom logic by parsing cloud trail logs for download(s) within the specified time frame. Couple of folks have also created feature requests within the container roadmap repo to hopefully get this functionality added:

Superb comment, thank you for the details

u/jeffbarr

Could you look at this please ??