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

Cannot use a different config directory #388

Open
drefrome opened this issue Mar 19, 2023 · 1 comment
Open

Cannot use a different config directory #388

drefrome opened this issue Mar 19, 2023 · 1 comment

Comments

@drefrome
Copy link

I need to be able to keep the credentials for one project/client separate from others. Though the documentation says the config file is stored in the user's home directory "by default", the code reveals that there is no way to point the gimme-aws-creds to a different directory.

Expected Behavior

I expect given the language in the README here that there would be either a command-line argument to gimme-aws-creds or an environment variable I could to point the script to another directory.

Current Behavior

The code appears to read that FILE_ROOT is always the user's HOME directory and that there are no such configuration options.

Possible Solution

Add either a command-line argument or environment variable that allows the user to set a different FILE_ROOT for the config file if desired.

Your Environment

This is based on trying version 2.5.0 (most recent release) and reading the code at HEAD on master (as of 3/19/2023).

@schlueter
Copy link
Contributor

schlueter commented Feb 9, 2024

The README states:

A configuration wizard will prompt you to enter the necessary configuration parameters for the tool to run, the only one that is required is the okta_org_url. The configuration file is written to ~/.okta_aws_login_config, but you can change the location with the environment variable OKTA_CONFIG.

Does setting the environment variable OKTA_CONFIG to the full path of the alternate config file work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants