Show a List of Files in a S3 Bucket Sorted by Size and Created After a Specific Date
The command below will show the last 5 files created after YYYY-MM-DD and sorted by size.
aws s3api list-objects-v2 --bucket BUCKET_NAME --query 'sort_by(Contents[?LastModified>=`YYYY-MM-DD`], &Size)[-5:]