https://github.com/dvberkel/upload-experiment
A project to examine the aws-s3 ruby gem, among others
https://github.com/dvberkel/upload-experiment
Last synced: 2 months ago
JSON representation
A project to examine the aws-s3 ruby gem, among others
- Host: GitHub
- URL: https://github.com/dvberkel/upload-experiment
- Owner: dvberkel
- Created: 2012-04-27T19:38:19.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-04-28T15:11:15.000Z (about 13 years ago)
- Last Synced: 2025-02-07T23:31:38.441Z (4 months ago)
- Language: Ruby
- Size: 89.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Upload Experiment
=================This project experiments with the
[aws-s3](https://github.com/marcel/aws-s3 "marcel/aws-s3 project on GitHub")
to upload data to Amazon.Environment
-----------aws-s3 is a ruby gem. We use
[rvm](https://rvm.io// "rvm homepage")
to control the environment of installed gems.Run the following commands to create the proper gemset
> rvm use 1.9.2
> rvm gemset uploadThe `.rvmrc` file, when accepted is, will choose this gemset upon
entering the directory.Furthermore, we use
[bundler](http://gembundler.com/ "Bundler homepage")
to gather the dependencies.You can install bundler with the following command
> gem install bundler
To install the dependencies execute
> bundle install
Authentication
--------------In order to communicate with Amazon you have to authenticate
yourself. This should be done with an Amazon acces key id and the
corresponding secret key.
(See the
[Amazon
documentation](https://payments.amazon.com/sdui/sdui/helpTab/Checkout-by-Amazon/Advanced-Integration-Help/Using-Your-Access-Key
"Amazon on keys") for more information)It is of the utmost important that you do not share these keys. Other
could use them and you would be billed. It is a best practice to
refer to them via environment variables.For example when you create an `.amazon` file like so
export AMAZON_ACCESS_KEY_ID='abcdefghijklmnop'
export AMAZON_SECRET_ACCESS_KEY='1234567891012345'and incorporate the following inside a `.bashrc`
if [[ -f "$HOME/.amazon_keys" ]];
then
source "$HOME/.amazon_keys";
fiThey will be available and used by the aws-s3 gem.