Closed jimcroft closed 9 years ago
I was under the impression that the ~/.aws/credentials file could/should only define credentials and that the region had to go into the ~/.aws/config file. Can you verify @jamesls ?
I can confirm that region is honoured if set in ~/.aws/credentials. The docs do look a little muddled here as they also say "The AWS CLI will also read credentials from the config file". It looks like credentials and config files can be used interchangeably with only a slight difference in format (eg. [name] vs. [profile name]).
Based on this I think this PR is incomplete as ~/.aws/config should be inspected for a default region too.
I'm going to close this issue so that we can continue the discussion at the master repository over here: https://github.com/aws/aws-sdk-ruby/pull/703
Shared credential ini style files can contain a region setting which is used as a default by tools like the AWS CLI. I'd like the Aws::SharedCredentials object to provide me with that optional region setting for use in my Ruby code.