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

Correct evaluation of "profile" command argument #124

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

monde
Copy link
Collaborator

@monde monde commented Aug 16, 2023

Ensure "profile" flag/env var is evaluated in the same order as AWS CLI. Viper config library was already doing this but profile is treated in a special case as the CLI flag is --profile but the ENV VAR name is OKTA_AWSCLI_PROFILE so as not clobber PROFILE that may be set by other environments.

Clarify order precedence of CLI flag > .env val > ENV VAR

Closes #120

Viper config library was already doing this but profile is treated in a
special case as the CLI flag is `--profile` but the ENV VAR name is
`OKTA_AWSCLI_PROFILE` so as not clobber `PROFILE` that may be set by
other environments.

Clarify order precedence of CLI flag > .env val > ENV VAR

Closes #120
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

Successfully merging this pull request may close these issues.

Configuration priority is non-standard - env vars override CLI flags
3 participants