Skip to content

Instantly share code, notes, and snippets.

@bq1990
Created June 5, 2016 20:27
Show Gist options
  • Save bq1990/74d00255e99559fda018114cdb72fa5d to your computer and use it in GitHub Desktop.
Save bq1990/74d00255e99559fda018114cdb72fa5d to your computer and use it in GitHub Desktop.
Test aws access with boto
>>> import boto
>>> s3 = boto.connect_s3('<access_key>', '<secret_key>')
>>> bucket = s3.lookup('donebox-static')
>>> key = bucket.new_key('testkey')
>>> key.set_contents_from_string('This is a test')
>>> key.exists()
>>> key.delete()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment