awslabs / aws-shell

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

Setting default region from credentials file #246

Open TimWSpence opened 3 years ago

TimWSpence commented 3 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?