Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #latest #file #bucket #javascript
ADD COMMENT
Topic
Name
4+3 =