Created
January 31, 2017 07:23
-
-
Save bq1990/47b0d4a510c5bc483d303ac46ea81774 to your computer and use it in GitHub Desktop.
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
import boto | |
s3 = boto.connect_s3('<your access key>', '<your secret key>') | |
bucket = s3.get_bucket('<your bucket>') # does this work? | |
s3 = boto.connect_s3() | |
s3.aws_access_key_id # is the same key being used by default? | |
key = bucket.new_key('testkey') | |
key.set_contents_from_string('This is a test') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment