Skip to content
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

Allow configuring a different parent directory for .aws #3034

Open
1 of 2 tasks
krystalcode opened this issue Nov 23, 2024 · 2 comments
Open
1 of 2 tasks

Allow configuring a different parent directory for .aws #3034

krystalcode opened this issue Nov 23, 2024 · 2 comments
Labels
feature-request A feature should be added or improved.

Comments

@krystalcode
Copy link

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.

@krystalcode krystalcode added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Nov 23, 2024
@stobrien89 stobrien89 changed the title (short issue description) Allow configuring a different parent directory for .aws Nov 23, 2024
@yenfryherrerafeliz
Copy link
Contributor

Hi @krystalcode, I think this is already possible. You just need to set the env variable HOME to the location you want, as we can see here.

Please let me know if that helps!

Thanks!

@yenfryherrerafeliz yenfryherrerafeliz added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-triage This issue or PR still needs to be triaged. labels Nov 23, 2024
@krystalcode
Copy link
Author

krystalcode commented Nov 24, 2024

Hi @yenfryherrerafeliz , thanks for the response. The reason that I did not use that is that HOME is a generic Linux environment variable that should not be changed because it has a specific meaning in Linux and other processes within or outside of the application might rely upon. The HOME always needs to be the actual linux home directory of the user and should never be changed.

In the case that I mention in the description, the PHP/application user has a different home directory, while the web server user e.g. www-data would have a different home directory, or even no home directory at all. Home directories should never be changed.

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants