Poetic justice of cause and effect
Twitter • GitHub • Scientific Research
I offer ERP and big-data infrastructure consulting and development with an agile team of professionals.
If you're interested in working together, feel free to contact me.
More about me.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import os ACCESS_KEY_ID = os.environ['ACCESS_KEY_ID'] SECRET_ACCESS_KEY = os.environ['SECRET_ACCESS_KEY'] # SNIP import boto def list_all_buckets(s3): buckets = s3.get_all_buckets() return buckets def main(): s3 = boto.connect_s3( aws_access_key_id=ACCESS_KEY_ID, aws_secret_access_key=SECRET_ACCESS_KEY) buckets = list_all_buckets(s3) print buckets main() # SNAP