-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use XDG Base Directory Specification #1839
Comments
This proposal does not change the default override logic: the environment variables The proposed change only affects the hardcoded default fallback locations. |
@pierreprinetti In general, I don't think we're against this change it's simply been more of a priority issue than anything else. There's a relatively high amount of friction in making a change like this as botocore and the AWS CLI aren't the only tools that look at these files. If we make this change it puts pressure on other tools to follow suite (read as we'll likely need consensus before making the change). To be blunt, we likely won't have much time to look into this anytime soon as it's functionally the same and there are workarounds (mentioned in the other thread) if one is really inclined on getting this behavior. |
If this was possible with a small change (and I am not sure it is), would you accept a PR that:
|
This feature request is now being tracked here in our cross-SDK repository: aws/aws-cli#9031. Feature requests involving credentials/configuration need to be reviewed at a cross-SDK level, since other SDKs rely on those in addition to the CLI. Will close this issue to continue tracking there. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
The XDG specification defines where configuration files and credential files should be placed.
Following this standard ensures a clean home directory and some consistency across applications.
The default directory to write configuration and credentials files should be
${XDG_CONFIG_HOME:-${HOME}/.config}/aws
(or%LOCALAPPDATA%\aws\config
).The default directory to read configuration and credentials files should be
${XDG_CONFIG_HOME:-${HOME}/.config}/aws
(or%LOCALAPPDATA%\aws\config
) first, then${HOME}/.aws
to maintain backwards compatibility.What do you think?
I am willing to file a change request if this design is accepted.
I hope the Windows values make some sense, as I am not an expert.
cf. https://github.com/aws/aws-cli/issues/2433
The text was updated successfully, but these errors were encountered: