Last active
August 29, 2015 14:23
-
-
Save xecutioner/93de8af45bf4ef407eed to your computer and use it in GitHub Desktop.
AWS
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
[6/18/15, 2:44:59 PM] Kapil Nakhwa: s3 = AWS::S3.new | |
bucket = s3.buckets.create('dns-compat-bucket-name') | |
[6/18/15, 2:45:33 PM] Kapil Nakhwa: s3 = AWS::S3.new( | |
:access_key_id => 'YOUR_ACCESS_KEY_ID', | |
:secret_access_key => 'YOUR_SECRET_ACCESS_KEY') | |
bucket = s3.buckets['my-bucket'] # no request made | |
obj.write(Pathname.new('/path/to/file.txt')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment