mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
Update elasticache mocking regions
Add all regions specified in https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/RegionsAndAZs.html#SupportedRegions
This commit is contained in:
parent
21dc3f3f61
commit
57686461ba
1 changed files with 4 additions and 2 deletions
|
@ -171,8 +171,10 @@ module Fog
|
||||||
@aws_credentials_expire_at = Time::now + 20
|
@aws_credentials_expire_at = Time::now + 20
|
||||||
setup_credentials(options)
|
setup_credentials(options)
|
||||||
@region = options[:region] || 'us-east-1'
|
@region = options[:region] || 'us-east-1'
|
||||||
unless ['ap-northeast-1', 'ap-southeast-1', 'eu-west-1', 'us-east-1',
|
unless ['ap-south-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-northeast-3', 'ap-southeast-1', 'ap-southeast-2',
|
||||||
'us-west-1', 'us-west-2', 'sa-east-1'].include?(@region)
|
'eu-west-1', 'eu-west-2', 'eu-west-3', 'eu-central-1',
|
||||||
|
'us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'ca-central-1',
|
||||||
|
'sa-east-1', 'cn-north-1', 'cn-northwest-1', 'ap-east-1', 'us-gov-west-1'].include?(@region)
|
||||||
raise ArgumentError, "Unknown region: #{@region.inspect}"
|
raise ArgumentError, "Unknown region: #{@region.inspect}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue