awslabs / awslabs/aws-shell

Setting default region from credentials file

Open
#246 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.3k
Forks
780
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with conflicting region values in ~/.aws/config and ~/.aws/credentials, then trace how the shell resolves the default region from those files. Confirm the intended precedence and document or test the behavior; done means the region selection matches that documented expectation.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.