aws.signature icon indicating copy to clipboard operation
aws.signature copied to clipboard

Use the /.aws/config file for region

Open wenjiaz opened this issue 7 years ago • 3 comments

Since credentials can be obtained from the ~/.aws/credentials file, I was wondering if the default-region parameter can also be obtained from the AWS CLI config file ~/.aws/config?

wenjiaz avatar Jul 18 '17 18:07 wenjiaz

This is not currently possible. Would it be useful?

leeper avatar Jul 18 '17 19:07 leeper

Sorry for just getting back here! I think it'll be useful to incorporate it if it is possible because it is far easier to maintain region configuration across both AWS CLI and R scripts this way.

If it's not doable, I suggest at least making a note of it in the documentation. I had assumed the library would pull from the config file since the credentials were automatically pulled too, and stumbled upon region mismatch problems.

wenjiaz avatar Aug 05 '17 01:08 wenjiaz

@leeper I would also find this very useful

halldc avatar Jun 06 '19 18:06 halldc