mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws] add us-west-2 region
This commit is contained in:
parent
bb7cdbb165
commit
cb3942d633
13 changed files with 36 additions and 11 deletions
|
@ -88,6 +88,8 @@ module Fog
|
|||
'autoscaling.us-east-1.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
'autoscaling.us-west-1.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
'autoscaling.us-west-2.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
@ -204,7 +206,7 @@ module Fog
|
|||
|
||||
@region = options[:region] || 'us-east-1'
|
||||
|
||||
unless ['ap-northeast-1', 'ap-southeast-1', 'eu-west-1', 'us-east-1', 'us-west-1'].include?(@region)
|
||||
unless ['ap-northeast-1', 'ap-southeast-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2'].include?(@region)
|
||||
raise ArgumentError, "Unknown region: #{@region.inspect}"
|
||||
end
|
||||
|
||||
|
|
|
@ -65,6 +65,8 @@ module Fog
|
|||
'cloudformation.us-east-1.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
'cloudformation.us-west-1.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
'cloudformation.us-west-2.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
|
|
@ -57,7 +57,7 @@ module Fog
|
|||
#
|
||||
# ==== Parameters
|
||||
# * options<~Hash> - config arguments for connection. Defaults to {}.
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1', 'ap-southeast-1', 'ap-northeast-1']
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'ap-southeast-1', 'ap-northeast-1']
|
||||
#
|
||||
# ==== Returns
|
||||
# * CloudWatch object with connection to AWS.
|
||||
|
@ -79,6 +79,8 @@ module Fog
|
|||
'monitoring.us-east-1.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
'monitoring.us-west-1.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
'monitoring.us-west-2.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
|
|
@ -170,7 +170,7 @@ module Fog
|
|||
|
||||
@region = options[:region] || 'us-east-1'
|
||||
|
||||
unless ['ap-northeast-1', 'ap-southeast-1', 'eu-west-1', 'us-east-1', 'us-west-1'].include?(@region)
|
||||
unless ['ap-northeast-1', 'ap-southeast-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2'].include?(@region)
|
||||
raise ArgumentError, "Unknown region: #{@region.inspect}"
|
||||
end
|
||||
end
|
||||
|
@ -248,7 +248,7 @@ module Fog
|
|||
# ==== Parameters
|
||||
# * options<~Hash> - config arguments for connection. Defaults to {}.
|
||||
# * region<~String> - optional region to use, in
|
||||
# ['eu-west-1', 'us-east-1', 'us-west-1', 'ap-northeast-1', 'ap-southeast-1']
|
||||
# ['eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'ap-northeast-1', 'ap-southeast-1']
|
||||
#
|
||||
# ==== Returns
|
||||
# * EC2 object with connection to aws.
|
||||
|
@ -279,6 +279,8 @@ module Fog
|
|||
'ec2.us-east-1.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
'ec2.us-west-1.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
'ec2.us-west-2.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
|
|
@ -64,7 +64,7 @@ module Fog
|
|||
|
||||
@region = options[:region] || 'us-east-1'
|
||||
|
||||
unless ['ap-northeast-1', 'ap-southeast-1', 'eu-west-1', 'us-east-1', 'us-west-1'].include?(@region)
|
||||
unless ['ap-northeast-1', 'ap-southeast-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2'].include?(@region)
|
||||
raise ArgumentError, "Unknown region: #{@region.inspect}"
|
||||
end
|
||||
end
|
||||
|
@ -94,7 +94,7 @@ module Fog
|
|||
#
|
||||
# ==== Parameters
|
||||
# * options<~Hash> - config arguments for connection. Defaults to {}.
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1', 'ap-northeast-1', 'ap-southeast-1']
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'ap-northeast-1', 'ap-southeast-1']
|
||||
#
|
||||
# ==== Returns
|
||||
# * ELB object with connection to AWS.
|
||||
|
@ -118,6 +118,8 @@ module Fog
|
|||
'elasticloadbalancing.us-east-1.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
'elasticloadbalancing.us-west-1.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
'elasticloadbalancing.us-west-2.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
|
|
@ -57,7 +57,7 @@ module Fog
|
|||
#
|
||||
# ==== Parameters
|
||||
# * options<~Hash> - config arguments for connection. Defaults to {}.
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1'i, 'ap-southeast-1']
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'ap-southeast-1']
|
||||
#
|
||||
# ==== Returns
|
||||
# * EMR object with connection to AWS.
|
||||
|
|
|
@ -79,7 +79,7 @@ module Fog
|
|||
#
|
||||
# ==== Parameters
|
||||
# * options<~Hash> - config arguments for connection. Defaults to {}.
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1'i, 'ap-southeast-1']
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'ap-southeast-1']
|
||||
#
|
||||
# ==== Returns
|
||||
# * ELB object with connection to AWS.
|
||||
|
@ -101,6 +101,8 @@ module Fog
|
|||
'rds.us-east-1.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
'rds.us-west-1.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
'rds.us-west-2.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
|
|
@ -55,6 +55,9 @@ module Fog
|
|||
{"messageSet" => [], "regionName" => "us-west-1", "zoneName" => "us-west-1b", "zoneState" => "available"},
|
||||
{"messageSet" => [], "regionName" => "us-west-1", "zoneName" => "us-west-1c", "zoneState" => "available"},
|
||||
|
||||
{"messageSet" => [], "regionName" => "us-west-2", "zoneName" => "us-west-2a", "zoneState" => "available"},
|
||||
{"messageSet" => [], "regionName" => "us-west-2", "zoneName" => "us-west-2b", "zoneState" => "available"},
|
||||
|
||||
{"messageSet" => [], "regionName" => "eu-west-1", "zoneName" => "eu-west-1a", "zoneState" => "available"},
|
||||
{"messageSet" => [], "regionName" => "eu-west-1", "zoneName" => "eu-west-1b", "zoneState" => "available"},
|
||||
{"messageSet" => [], "regionName" => "eu-west-1", "zoneName" => "eu-west-1c", "zoneState" => "available"},
|
||||
|
|
|
@ -40,7 +40,7 @@ module Fog
|
|||
#
|
||||
# ==== Parameters
|
||||
# * options<~Hash> - config arguments for connection. Defaults to {}.
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1'i, 'ap-southeast-1']
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'ap-southeast-1']
|
||||
#
|
||||
# ==== Returns
|
||||
# * SES object with connection to AWS.
|
||||
|
|
|
@ -86,6 +86,8 @@ module Fog
|
|||
'sdb.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
'sdb.us-west-1.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
'sdb.us-west-2.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
|
|
@ -65,6 +65,8 @@ module Fog
|
|||
'sns.us-east-1.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
'sns.us-west-1.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
'sns.us-west-2.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
|
|
@ -40,7 +40,7 @@ module Fog
|
|||
|
||||
@region = options[:region] || 'us-east-1'
|
||||
|
||||
unless ['ap-northeast-1', 'ap-southeast-1', 'eu-west-1', 'us-east-1', 'us-west-1'].include?(@region)
|
||||
unless ['ap-northeast-1', 'ap-southeast-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2'].include?(@region)
|
||||
raise ArgumentError, "Unknown region: #{@region.inspect}"
|
||||
end
|
||||
end
|
||||
|
@ -71,7 +71,7 @@ module Fog
|
|||
#
|
||||
# ==== Parameters
|
||||
# * options<~Hash> - config arguments for connection. Defaults to {}.
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1', 'ap-southeast-1']
|
||||
# * region<~String> - optional region to use, in ['eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'ap-southeast-1']
|
||||
#
|
||||
# ==== Returns
|
||||
# * SQS object with connection to AWS.
|
||||
|
@ -90,6 +90,8 @@ module Fog
|
|||
'queue.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
'us-west-1.queue.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
'us-west-2.queue.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
|
|
@ -199,6 +199,8 @@ module Fog
|
|||
's3.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
's3-us-west-1.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
's3-us-west-2.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
@ -271,6 +273,8 @@ module Fog
|
|||
's3.amazonaws.com'
|
||||
when 'us-west-1'
|
||||
's3-us-west-1.amazonaws.com'
|
||||
when 'us-west-2'
|
||||
's3-us-west-2.amazonaws.com'
|
||||
else
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue