Skip to content

Commit

Permalink
Merge pull request #662 from thattommyhall/master
Browse files Browse the repository at this point in the history
Added sa-east-1 region
  • Loading branch information
Wesley Beary committed Dec 15, 2011
2 parents 2034bd6 + e239c9e commit f4068b6
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fog/aws/auto_scaling.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def initialize(options={})
'autoscaling.us-west-1.amazonaws.com'
when 'us-west-2'
'autoscaling.us-west-2.amazonaws.com'
when 'sa-east-1'
'autoscaling.sa-east-1.amazonaws.com'
else
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
end
Expand Down
2 changes: 2 additions & 0 deletions lib/fog/aws/cloud_formation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def initialize(options={})
'cloudformation.us-west-1.amazonaws.com'
when 'us-west-2'
'cloudformation.us-west-2.amazonaws.com'
when 'sa-east-1'
'cloudformation.sa-east-1.amazonaws.com'
else
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
end
Expand Down
2 changes: 2 additions & 0 deletions lib/fog/aws/cloud_watch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def initialize(options={})
'monitoring.us-west-1.amazonaws.com'
when 'us-west-2'
'monitoring.us-west-2.amazonaws.com'
when 'sa-east-1'
'monitoring.sa-east-1.amazonaws.com'
else
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
end
Expand Down
2 changes: 2 additions & 0 deletions lib/fog/aws/compute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ def initialize(options={})
'ec2.us-west-1.amazonaws.com'
when 'us-west-2'
'ec2.us-west-2.amazonaws.com'
when 'sa-east-1'
'ec2.sa-east-1.amazonaws.com'
else
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
end
Expand Down
2 changes: 2 additions & 0 deletions lib/fog/aws/elb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def initialize(options={})
'elasticloadbalancing.us-west-1.amazonaws.com'
when 'us-west-2'
'elasticloadbalancing.us-west-2.amazonaws.com'
when 'sa-east-1'
'elasticloadbalancing.sa-east-1.amazonaws.com'
else
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
end
Expand Down
2 changes: 2 additions & 0 deletions lib/fog/aws/rds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def initialize(options={})
'rds.us-west-1.amazonaws.com'
when 'us-west-2'
'rds.us-west-2.amazonaws.com'
when 'sa-east-1'
'rds.sa-east-1.amazonaws.com'
else
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
end
Expand Down
3 changes: 3 additions & 0 deletions lib/fog/aws/requests/compute/describe_availability_zones.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def describe_availability_zones(filters = {})

{"messageSet" => [], "regionName" => "us-west-2", "zoneName" => "us-west-2a", "zoneState" => "available"},
{"messageSet" => [], "regionName" => "us-west-2", "zoneName" => "us-west-2b", "zoneState" => "available"},

{"messageSet" => [], "regionName" => "sa-east-1", "zoneName" => "sa-east-1a", "zoneState" => "available"},
{"messageSet" => [], "regionName" => "sa-east-1", "zoneName" => "sa-east-1b", "zoneState" => "available"},

{"messageSet" => [], "regionName" => "eu-west-1", "zoneName" => "eu-west-1a", "zoneState" => "available"},
{"messageSet" => [], "regionName" => "eu-west-1", "zoneName" => "eu-west-1b", "zoneState" => "available"},
Expand Down
2 changes: 2 additions & 0 deletions lib/fog/aws/simpledb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def initialize(options={})
'sdb.us-west-1.amazonaws.com'
when 'us-west-2'
'sdb.us-west-2.amazonaws.com'
when 'sa-east-1'
'sdb.sa-east-1.amazonaws.com'
else
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
end
Expand Down
2 changes: 2 additions & 0 deletions lib/fog/aws/sns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def initialize(options={})
'sns.us-west-1.amazonaws.com'
when 'us-west-2'
'sns.us-west-2.amazonaws.com'
when 'sa-east-1'
'sns.sa-east-1.amazonaws.com'
else
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
end
Expand Down
2 changes: 2 additions & 0 deletions lib/fog/aws/sqs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def initialize(options={})
'us-west-1.queue.amazonaws.com'
when 'us-west-2'
'us-west-2.queue.amazonaws.com'
when 'sa-east-1'
'sa-east-1.queue.amazonaws.com'
else
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
end
Expand Down
2 changes: 2 additions & 0 deletions lib/fog/aws/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ def initialize(options={})
's3-us-west-1.amazonaws.com'
when 'us-west-2'
's3-us-west-2.amazonaws.com'
when 'sa-east-1'
's3-sa-east-1.amazonaws.com'
else
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
end
Expand Down

0 comments on commit f4068b6

Please sign in to comment.