Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Added region to Aws::SharedCredentials #213

Closed
wants to merge 1 commit into from
Closed

Added region to Aws::SharedCredentials #213

wants to merge 1 commit into from

Conversation

jimcroft
Copy link

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.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 93.98% when pulling 585cb5d on jimcroft:feature/add_region_to_sharedcredentials into 3f2a3e0 on aws:master.

@trevorrowe
Copy link
Contributor

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 ?

@jimcroft
Copy link
Author

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.

@trevorrowe
Copy link
Contributor

I'm going to close this issue so that we can continue the discussion at the master repository over here: aws/aws-sdk-ruby#703

@trevorrowe trevorrowe closed this Feb 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants