Skip to content

Instantly share code, notes, and snippets.

@bq1990
Created January 31, 2017 07:23
Show Gist options
  • Save bq1990/47b0d4a510c5bc483d303ac46ea81774 to your computer and use it in GitHub Desktop.
Save bq1990/47b0d4a510c5bc483d303ac46ea81774 to your computer and use it in GitHub Desktop.
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