Skip to content

[AWS] Request ability to modify AWS_CONFIG_FILE path #850

Closed

Description

@marcus-crane

Extension – Amazon AWS

Author: @victor-falcon

Describe the feature and the current behavior/state.

I would like to request that instead of directly hardcoding ~/.aws/credentials, you support the AWS_CONFIG_FILE environment variable.

In the case of where I work, we use saml2aws and in order to have the AWS invoke it every time (using the credential_process block supported by AWS config), my credentials file lives at ~/.saml2aws_credentials.

Seemingly this could be done by adding an extra preferences field that the user can specify and then feeding that into the SDK used under the hood of the extension

Who will benefit with this feature?

Myself and any other engineers who use this somewhat niche variable

Any Other info.

Activity

  1. added
    extension
    feature request
    on Feb 10, 2022
  2. changed the title [-][AWS] [/-] [+][AWS] Request support for AWS_CONFIG_FILE[/+] on Feb 10, 2022
  3. changed the title [-][AWS] Request support for AWS_CONFIG_FILE[/-] [+][AWS] Request ability to modify AWS_CONFIG_FILE path[/+] on Feb 10, 2022
  4. marcus-crane commented on Feb 10, 2022

    @marcus-crane
    Author

    It looks like for the Javascript SDK, setting AWS_SHARED_CREDENTIALS_FILE as an environment variable should do the trick:

    https://github.com/aws/aws-sdk-js/blob/master/lib/credentials/shared_ini_file_credentials.js#L10

  5. stale commented on Apr 1, 2022

    @stale

    This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.

  6. added
    wontfix
    on Apr 1, 2022
  7. marcus-crane commented on Apr 1, 2022

    @marcus-crane
    Author

    That seems a bit excessive...

  8. removed
    wontfix
    on Apr 1, 2022
  9. adnanrahic commented on Apr 4, 2022

    @adnanrahic

    I can second @marcus-crane that this feature is needed for any production use case.
    Using different AWS Profiles is normal in day-to-day work.
    I'd suggest implementing this, as it would enable setting the particular profile when enabling the extension.

    Thanks @marcus-crane for opening this issue. 👏

  10. stale commented on May 25, 2022

    @stale

    This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.

  11. stale commented on Jul 15, 2022

    @stale

    This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.

  12. added
    wontfix
    on Jul 15, 2022
  13. speed0ne commented on Aug 11, 2023

    @speed0ne

    Please integrate it.
    I also use AWS with different SSO Profile and the actual state doesn't work for me.

  14. raycastbot commented on Aug 11, 2023

    @raycastbot
    Collaborator

    We could not find the extension related to this issue. Please update the issue with the link to the extension.

  15. added
    status: stalled
    on Aug 11, 2023
  16. paro-paro commented on Mar 8, 2024

    @paro-paro

    Any update on this? Is it possible to use the extension while having the .aws/credentials file outside the $HOME directory?

    export AWS_CONFIG_FILE="$XDG_CONFIG_HOME/aws/config"
    export AWS_SHARED_CREDENTIALS_FILE="$XDG_CONFIG_HOME/aws/credentials"
  17. added a commit that references this issue on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    extensionfeature requeststatus: stalledwontfix

    Type

    No type

    Fields

    Priority

    None yet

    Severity

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions