aws s3 see which files accessed most often code example
Example 1: aws s3 get file size
aws s3 ls --summarize --human-readable --recursive s3://bucket-name/directory
Example 2: get latest file from s3 bucket javascript
aws s3api list-objects-v2 --bucket "my-awesome-bucket" --query 'sort_by(Contents, &LastModified)[-1].Key' --output=text