Skip to content

[feat] Use credentials_file variable in config file #8958

@lonix1

Description

@lonix1

Describe the feature

I want to keep user secrets separate from config.

Secrets file at custom path /home/me/.secrets/aws/credentials:

[default]
aws_access_key_id=foo
aws_secret_access_key=bar

Config file at default path /home/me/.aws/config:

[default]
region=us-east-1
credentials_file=/home/me/.secrets/aws/credentials

I assumed I can use credentials_file as it's in the docs. However that doesn't work:

Unable to locate credentials. You can configure credentials by running "aws configure".

Please let us use credentials_file as a variable in the config file.

Use Case

  • To keep secrets and config separate
  • To keep secrets in well-known location
  • Plays nice with other tools

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CLI version used

2.18.1

Environment details (OS name and version, etc.)

ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions