1 Answer
0
Accepted Answer
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 3 months ago
Relevant content
- asked 4 days ago
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 years ago