'Why isn't my aws cli default region name configuration saving?

When I run aws configure and am prompted to enter the Default region name, I input us-east-2 - but it never seems to save that configuration. This feels simple enough, but am I missing something here?

enter image description here



Solution 1:[1]

I found there are 2 files in my ~/.aws/ folder, both of them got a region setting in there.

  • config
  • credentials

And I modified the region in the credentials file, then it works to me.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Chris Kao