我刚刚开始使用 boto 连接到 Amazon CloudSearch。
我让示例正常工作,但我找不到任何连接到现有域的示例,所有示例都创建了一个新域。
四处寻找,我找到了 get_domain,但如果我在连接对象上调用它,它就会失败。
>>> conn.get_domain('foo')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Layer2' object has no attribute 'get_domain'
关于如何连接到现有域的任何建议?
[编辑] 我从这个开始:http: //boto.cloudhackers.com/en/latest/cloudsearch_tut.html
所以,我所做的一切
import boto
conn = boto.connect_cloudsearch()