Skip to content

Instantly share code, notes, and snippets.

@garnaat
Created June 14, 2011 13:01
Show Gist options
  • Save garnaat/1024840 to your computer and use it in GitHub Desktop.
Save garnaat/1024840 to your computer and use it in GitHub Desktop.
Connect to SimpleDB in a different region
>>> import boto.sdb
>>> boto.sdb.regions()
[RegionInfo:us-east-1, RegionInfo:eu-west-1, RegionInfo:us-west-1, RegionInfo:ap-northeast-1, RegionInfo:ap-southeast-1]
>>> eu = _[1]
>>> eu
RegionInfo:eu-west-1
>>> c = eu.connect()
>>> c
SDBConnection:sdb.eu-west-1.amazonaws.com
>>> c.get_all_domains()
[Domain:serverset]
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment