Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Region not detected from credentials file #1073

Closed
mfischer-zd opened this issue Jan 25, 2016 · 6 comments
Closed

Region not detected from credentials file #1073

mfischer-zd opened this issue Jan 25, 2016 · 6 comments
Labels
feature-request A feature should be added or improved.

Comments

@mfischer-zd
Copy link

The AWS CLI can obtain its working region from a credentials file, e.g.:

[profile tokyo]
source_profile = default
region = ap-northeast-1
role_arn = arn:aws:iam::123456789:role/master-of-the-universe

The Ruby code should behave similarly if AWS_PROFILE is set, without also requiring AWS_DEFAULT_REGION or AWS_REGION to be set.

@awood45 awood45 added feature-request A feature should be added or improved. Version 2 labels Jan 25, 2016
@awood45
Copy link
Member

awood45 commented Jan 25, 2016

Thank you for the feature request. We're looking at the best way to support some of these CLI configuration values going forward.

In the meantime, one option is to use the AWS_REGION environment variable, if you use the same region across clients.

@mfischer-zd
Copy link
Author

Actually, it looks like the Ruby SDK doesn't support the modern CLI config file format at all ($HOME/.aws/config, as opposed to the legacy $HOME/.aws/credentials file). See #1045

@awood45
Copy link
Member

awood45 commented Jan 25, 2016

This is correct, that's currently CLI-specific.

Given that there is a large ask for this, we are looking for the best way to support some of these features, without introducing unexpected behavior into the SDK.

@awood45
Copy link
Member

awood45 commented May 6, 2016

Addressed by #1178

@Brotakuu
Copy link

Brotakuu commented Jun 7, 2016

Please add this to the docs. Spent way too much time debugging what turned out to be a region mismatch.

@awood45
Copy link
Member

awood45 commented Jul 18, 2016

#1178 has been merged, this will be supported with the next release, which will be version 2.4.0.

@awood45 awood45 closed this as completed Jul 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

3 participants