1 Answer
- Newest
- Most votes
- Most comments
0
If you need 5 object keys sorted in ascending order of size among objects modified after 2022-12-28, how about this?
aws s3api list-objects-v2 --bucket BUCKETNAME --query 'sort_by(Contents[?LastModified>='"2022-12-28"'], &Size)[-5:].Key'
answered 4 years ago
Relevant content
asked 5 years ago
asked 6 years ago
- AWS OFFICIALUpdated 7 months ago
