1
我試圖更新安全組以從其他安全組添加端口。
例如:sg.authorize('tcp', 22, 22, sg-123456)
使用boto.authorize更新sg以從現有sg添加端口
但我提示以下錯誤:
sg.authorize('sg-abcdef', 'tcp', 22, 22, 'sg-123456')
File "/usr/local/lib/python2.7/site-packages/boto/ec2/securitygroup.py", line 187, in authorize
src_group_owner_id = src_group.owner_id
AttributeError: 'str' object has no attribute 'owner_id'
我對ec2 conn對象使用了authorize_security_group方法,它正在工作..謝謝:) – user3435964 2014-10-11 05:25:00