Skip to content

Allow configuring a different parent directory for .aws #3034

@krystalcode

Description

@krystalcode

Describe the feature

Allow configuring a different parent folder/location for the .aws folder that holds the config/credentials files. Currently, the AWS_CONFIG_FILE can configure a location for the config file. Other than that, in many places in the code the .aws is assumed to be under the $HOME folder.

Use Case

Some applications may trigger actions either via CLI or via the UI. These are commonly configured as separate users, that may not even have a home directory. In such cases, the .aws folder that holds the config/credentials files needs to be placed in a location that both users have access to.

Proposed Solution

Introduce a new environment variable AWS_HOME that will define the location of the parent folder for .aws.

Other Information

No response

Acknowledgements

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

SDK version used

latest

Environment details (Version of PHP (php -v)? OS name and version, etc.)

Linux, php:8.1 official container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions