awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.22k stars 779 forks source link

Setting default region from credentials file #246

Open TimWSpence opened 4 years ago

TimWSpence commented 4 years ago

I just spent quite a while with a colleague trying to figure out why the aws shell wasn't honouring the default region that we'd set in ~/.aws/config It turns out that somehow she had got a line in her ~/.aws/credentials setting the default region to something else and this setting was being preferred. This seems like a bug, unless it is the intended behaviour that all files in ~/.aws are valid locations for default settings?