boto/boto — pull request #715 by rdodev (2012-04-21 02:12:11+00:00)
Title: Region work for ec2 and SQS 

I only worked on these two services as a proof-of-concept, but if Mitch, Greg, at al think it's appropriate it can be extended to more services.

The use case is simple: currently you need to either connect to the default region (east or specified in your boto config) or else provide a RegionInfo as a param to SQSConnection() or EC2Connection(). This is still possible to keep it backward compat. However, you can now specify EC2Connection(region_name='us-west-2') and it will create a RegionInfo to the endpoint which can be derived from the region name and thus eliminating the need to create a RegionInfo object to pass as a param, again, since it can be directly inferred from the region and service name.

All the unit tests for these two pass locally.