Open lonix1 opened 1 week ago
Thanks for reaching out. There's not a "Config Entry" for credentials_file
in the table you referenced, so the current behavior is expected.
As an alternative, have you tried setting the environment variable AWS_SHARED_CREDENTIALS_FILE
? (For more information on setting environment variables for the AWS CLI please refer to this documentation: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html)
Yes I tried that with the env var, and it works, thanks. That's a decent workaround, though must be set every time before using the cli, or added to the shell config (bashrc or whatever).
If possible someday, it would be nicer/cleaner to use the variable from inside the config file.
Thanks for following up and confirming. I think we can continue tracking this feature request for further review.
Describe the feature
I want to keep user secrets separate from config.
Secrets file at custom path
/home/me/.secrets/aws/credentials
:Config file at default path
/home/me/.aws/config
:I assumed I can use
credentials_file
as it's in the docs. However that doesn't work:Please let us use
credentials_file
as a variable in the config file.Use Case
Proposed Solution
No response
Other Information
No response
Acknowledgements
CLI version used
2.18.1
Environment details (OS name and version, etc.)
ubuntu 22.04