Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import boto
- # this example assumes that you have not added the AI credentials to your boto config file
- ia = boto.connect_ia('<ia_access_key_id>', '<ia_secret_access_key')
- stats = ia.lookup('stats')
- for key in stats:
- print key.name, key.size
- # or, if you have already added the IA credentials to your boto file you can do this
- ia = boto.connect_ia()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement