3
如何关闭boto ec2连接?关闭boto ec2连接
我打开使用连接:我试过的close()函数
conn = boto.ec2.connect_to_region(region, aws_access_key_id=access_key, aws_secret_access_key=secret_key)
,但我不认为它拆掉的连接。
conn.close()
上运行接近输出():[DEBUG]:closing all HTTP connections
即使关闭后,它就会全部预订
reservations = conn.get_all_instances()
我看着这些文档http://boto.readthedocs.org/en/latest/ec2_tut.html但无法找到的文档用于close()函数。
我真的很感激,如果有人可以帮助我在这里。
感谢
不,我没有遇到任何指定的问题w.r.t打开连接。我只是谨慎小心。非常感谢。 – 2014-11-07 01:14:32