Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from boto.ec2.connection import EC2Connection
- import urllib2
- proxy_support = urllib2.ProxyHandler({"http":""})
- opener = urllib2.build_opener(proxy_support)
- urllib2.install_opener(opener)
- ip = 'http://10.2.4.129:8773/services/cloud'
- apikey = 'demo123'
- passx = 'demo123'
- pathx='services/cloud'
- conn=EC2Connection(
- aws_access_key_id=apikey,
- aws_secret_access_key=passx,
- host = 'http://10.2.4.129',
- port=8773,
- path=pathx)
- print "got here"
- #conn.get_status()
- conn.get_all_instances()
- print "got here too"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement