aws / aws/aws-cli

Inconsistent `aws configure` behavior involving Windows environment variable

Open
#9,024 1 comment 1 reaction 0 assignees View on GitHub
bug configure cross-sdk p3 windows
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### Describe the bug

In the [SDKs & Tools Reference Guide](https://docs.aws.amazon.com/sdkref/latest/guide/file-location.html), it mentions that all platforms first check the `HOME` environment variable for the config and credentials files.

But in the CLI [configuration documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-where) it notes:

>The AWS CLI stores sensitive credential information that you specify with `aws configure` in a local file named credentials, in a folder named `.aws` in your home directory. The less sensitive configuration options that you specify with `aws configure` are stored in a local file named `config`, also stored in the `.aws` folder in your home directory.
>
>Where you find your home directory location varies based on the operating system, but is referred to using the environment variables `%UserProfile%` in Windows and `$HOME` or `~` (tilde) in Unix-based systems.

We need to confirm:
- If all SDKs first look for the `HOME` environment variable in Windows environments.
- If `aws configure` should be updated to update the `HOME` environment variable in Windows.
- If SDK/CLI documentation should be updated to clarify this behavior.

Originally reported here: https://github.com/aws/aws-cli/discussions/7035

Related Go PR: https://github.com/aws/aws-sdk-go/pull/1308

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.