okta / okta-aws-cli

A CLI for having Okta as the IdP for AWS CLI operations
https://github.com/okta/okta-aws-cli
Other
128 stars 34 forks source link

Correct evaluation of "profile" command argument #124

Closed monde closed 1 year ago

monde commented 1 year ago

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