Created
May 25, 2016 13:18
-
-
Save kparms/ec646f621cd0f0f97890bc645eda7ffa to your computer and use it in GitHub Desktop.
Using LS command against amazon s3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://docs.aws.amazon.com/cli/latest/reference/s3/ls.html | |
Documentation for aws s3 ls | |
AWS have recently release their Command Line Tools. This works much like boto and can be installed using sudo easy_install awscli or sudo pip install awscli | |
Once you have installed, you can then simply run | |
aws s3 ls | |
Which will show you all of your available buckets | |
CreationTime Bucket | |
------------ ------ | |
2013-07-11 17:08:50 mybucket | |
2013-07-24 14:55:44 mybucket2 | |
You can then query a specific bucket for files. | |
Command: | |
aws s3 ls s3://mybucket | |
Output: | |
Bucket: mybucket | |
Prefix: | |
LastWriteTime Length Name | |
------------- ------ ---- | |
PRE somePrefix/ | |
2013-07-25 17:06:27 88 test.txt | |
This will show you all of your files. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment