-
Notifications
You must be signed in to change notification settings - Fork 1.5k
config file isn't checked for region #1039
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
Comments
Hi @jjshoe You update the region in your code using
Or you can set your environment variable Or you could also set your configuration, including the region, in a
Note that using this method will delete and replace your existing configuration with the configuration in your Let me know if that resolves the error you're running into! |
This is a feature request that we are looking into implementing in the future. |
I, too, would like to see reading of the config file in resolving the credential chain. In my case, it's for automatic role assumption (using role_arn, source_profile, mfa_serial, etc.) via the config file. I have a CLI that I wrote with this module, and I would like for users' credentials to resolve however they would with the AWS CLI. |
Addressed in #1391. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Version: 2.4.3
~/.aws/config
isn't checked for region information when trying to perform a connection.To reproduce:
~/.aws/config:
~/.aws/credentials:
~/test.js:
Also worth noting, if I rm ~/.aws/credentials, put aws_access_key_id and aws_secret_access_key in ~/.aws/config I still get the above error.
Relevant doc on how the AWS cli precedence: http://docs.aws.amazon.com/cli/latest/topic/config-vars.html#id1
The text was updated successfully, but these errors were encountered: