$> aws ec2 describe-images --owners amazon --filters 'Name=name,Values=amzn2-ami-ecs-hvm-?.?.????????-x86_64-ebs' 'Name=state,Values=available' --query 'reverse(sort_by(Images, &CreationDate))[:1].ImageId' --output text
$> aws ec2 describe-images --owners amazon --filters 'Name=name,Values=amzn2-ami-ecs-hvm-?.?.????????-x86_64-ebs' 'Name=state,Values=available' --query 'reverse(sort_by(Images, &CreationDate))[:].[CreationDate,ImageId,ImageLocation,Description]' --output table
$> aws --region=eu-west-1 ec2 describe-images --owners amazon --filters 'Name=name,Values=amzn2-ami-ecs-hvm-?.?.????????-x86_64-ebs' 'Name=state,Values=available' --query 'reverse(sort_by(Images, &CreationDate))[:1]' --output table