I want to get the newest Docker image from ECR using boto3. Currently I'm using describe_images method from the ecr client and I get a dictionary with imageDetails
import boto3
registry_name = 'some_registry_name_in_aws'
client = boto3.client('ecr')
response = client.describe_images(
repositoryName=registry_name,
)
there's a solution for this using aws-cli, but documentation don't describe any --query argument that can be passed to describe_images. So, how can I get the newest docker image from ECR using boto3?