fog/fog — pull request #728 by paxan (2012-02-03 00:24:07+00:00)
Title: Don't hardcode regions

AWS has added and will add more regions. Apart from few early special cases (S3 & SQS have distinct us-east-1 endpoints), region name is simply part of API endpoint DNS name.

Having the knowledge of regions hardcoded, makes Fog fragile to future changes in AWS. Some projects tend to pick up new versions of Fog conservatively. Users of such sluggish projects tend to get stuck with whatever regions that Fog supported a year ago or more. That is because Fog had regions hardcoded. I know this pull request won't help these poor souls. But it will avoid this class of problems in future.

Hope this helps.

Please let me know if anything needs to be added or fixed or undone in this pull request.