How can I connect to us-west-2?

103 views
Skip to first unread message

kenneth

unread,
Apr 26, 2013, 4:18:23 AM4/26/13
to boto-...@googlegroups.com
conn = boto.connect_cloudsearch(AWS_ACCESS_KEY_ID,AWS_SECRET_KEY)

i can connect to us-east-1 but i don't know how to connect to us-west-2?

Mitchell Garnaat

unread,
Apr 26, 2013, 7:38:52 AM4/26/13
to boto-users
The easiest way to get a connection to a particular region is like this:

    import boto.cloudsearch
    
    conn = boto.cloudsearch.connect_to_region('us-west-2')

This approach works with all of the supported services.

Mitch


--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boto-users+...@googlegroups.com.
To post to this group, send email to boto-...@googlegroups.com.
Visit this group at http://groups.google.com/group/boto-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

kenneth

unread,
Apr 26, 2013, 11:05:04 PM4/26/13
to boto-...@googlegroups.com
I have try  this method:
conn = boto.cloudsearch.connect_to_region('us-west-2')
but

Traceback (most recent call last):
  File "test_cloudsearch_search.py", line 23, in <module>
    domain = conn.lookup('imdb')
AttributeError: 'NoneType' object has no attribute 'lookup'

so I
print dir(conn)





2013/4/26 Heling Yao <yaoh...@gmail.com>
>>> import boto.cloudsearch
>>> conn = boto.cloudsearch.connect_to_region("us-west-2",
...             aws_access_key_id='<aws access key'>,
...             aws_secret_access_key='<aws secret key>')


You can find more info on:
http://docs.pythonboto.org/en/latest/cloudsearch_tut.html
and
http://docs.pythonboto.org/en/latest/ref/cloudsearch.html



--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boto-users+...@googlegroups.com.
To post to this group, send email to boto-...@googlegroups.com.
Visit this group at http://groups.google.com/group/boto-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

kenneth

unread,
Apr 26, 2013, 11:06:59 PM4/26/13
to boto-...@googlegroups.com
['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__has
h__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setat
tr__', '__sizeof__', '__str__', '__subclasshook__']
Traceback (most recent call last):
  File "test_cloudsearch_search.py", line 23, in <module>
    domain = conn.lookup('imdb')
AttributeError: 'NoneType' object has no attribute 'lookup'


and why?

i can't use 

conn.loopup
conn.create_domain


2013/4/27 kenneth <kenne...@gmail.com>

kenneth

unread,
Apr 27, 2013, 2:08:16 AM4/27/13
to boto-...@googlegroups.com

Mitchell Garnaat

unread,
Apr 27, 2013, 9:26:25 AM4/27/13
to boto-users
What version of boto are you using?

skunkwerk

unread,
Nov 24, 2014, 7:19:38 PM11/24/14
to boto-...@googlegroups.com, mi...@garnaat.com
I'm having the same issue, and I'm running boto 2.9.0.
Any suggestions?

thanks,
imran
Reply all
Reply to author
Forward
0 new messages