lib/ddbcli/cli/options.rb in ddbcli-0.5.2 vs lib/ddbcli/cli/options.rb in ddbcli-0.5.3
- old
+ new
@@ -5,10 +5,10 @@
def parse_options
options = OpenStruct.new
options.access_key_id = ENV['AWS_ACCESS_KEY_ID']
options.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
options.ddb_endpoint_or_region =
- ENV['AWS_REGION'] || ENV['DDB_ENDPOINT'] || ENV['DDB_REGION'] || 'dynamodb.us-east-1.amazonaws.com'
+ ENV['AWS_REGION'] || ENV['AWS_DEFAULT_REGION'] || ENV['DDB_ENDPOINT'] || ENV['DDB_REGION'] || 'dynamodb.us-east-1.amazonaws.com'
# default value
options.timeout = 60
options.consistent = false
options.iteratable = false