brew install s3cmd
Now run s3cmd --configure to set it up.
Enter your AWS Access Key and Secret Key (which you can find in your control panel). Pick some encryption password (which is used during the transfer). I don't use any GPG program, no HTTPS protocol and no HTTP proxy server name.
The next option is to test the connection. Hit "Y". You should see the output:
`Success. Your access key and secret key worked fine :-)`
Now hit "Y" again to save the settings.
Great! Now you've got s3cmd set up and you can move files into and out of s3!
To move a file into s3, run the command:
s3cmd put path/to/filename/filename.file s3://path/to/s3/bucket/
The file can also be accessed via HTTP using the following format:
http(s)://<bucket>.s3.amazonaws.com/<object>
http(s)://s3.amazonaws.com/<bucket>/<object>
via AWS Support Forums
You can also navigate to the file in the S3 console, hit the properties and you'll see the HTTP link listed.To pull down a file from s3, run the command:
s3cmd get s3://path/to/s3/bucket/filename.file
No comments:
Post a Comment