How to get N files from S3 bucket ordered by max size and modified after certain date using CloudShell?
I tried to use this command: aws s3api list-objects-v2 --bucket BUCKETNAME --query 'Contents[?LastModified>=2022-12-28].Key && sort_by(Contents, &Size)[-5:]' And while it searches for 5 files ordered by max size, the files may be last modified before 2022-12-28, it seems that part of…