boto/boto — pull request #1179 by jamesls (2012-12-12 22:41:48+00:00)
Title: Use fixed set of regions for ec2.connect_to_region

The `boto.ec2.connect_to_region` function is implemented by calling `get_all_regions`. This has a number of benefits, primarily that the list of ec2 regions is always up to date. There are a number of downsides with this approach as well, two main ones being that every `connect_to_region` call makes a `get_all_regions` call and a dependency on us-east-1 (or the DefaultRegionName) even when connecting to other regions.

Also, switching to a fixed set of regions would make ec2 consistent with other boto modules connect_to_region implementations.