Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import boto
  2.  
  3. # this example assumes that you have not added the AI credentials to your boto config file
  4.  
  5. ia = boto.connect_ia('<ia_access_key_id>', '<ia_secret_access_key')
  6. stats = ia.lookup('stats')
  7. for key in stats:
  8. print key.name, key.size
  9.  
  10. # or, if you have already added the IA credentials to your boto file you can do this
  11.  
  12. ia = boto.connect_ia()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement