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 a year ago
Relevant content
- asked 3 years ago
- asked 2 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago