Created
June 5, 2016 20:27
-
-
Save bq1990/74d00255e99559fda018114cdb72fa5d to your computer and use it in GitHub Desktop.
Test aws access with boto
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('<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