lib/cloudstrap/config.rb in cloudstrap-0.48.0.pre vs lib/cloudstrap/config.rb in cloudstrap-0.48.2.pre
- old
+ new
@@ -10,12 +10,10 @@
include ::Contracts::Builtin
Contract None => String
def region
lookup(:region) do
- ENV.fetch('AWS_REGION') do
- ENV.fetch('AWS_DEFAULT_REGION') { 'us-west-2' }
- end
+ Aws::EC2::Client.new.config.region || 'us-west-2'
end
end
Contract None => String
def cache_path