okta-aws-cli icon indicating copy to clipboard operation
okta-aws-cli copied to clipboard

New error thrown for ".okta/okta.yaml" not found

Open estokes-vs opened this issue 6 months ago • 1 comments

I've upgraded today from okta-aws-cli 2.1.2 -> 2.3.0 and there appears to be a new error that is being thrown that likely could be resolved by the program itself.

The command we use to authenticate is below:

okta-aws-cli --org-domain <DOMAIN> --oidc-client-id <CLIENT_ID> --aws-acct-fed-app-id <AWS_ACCT_FED_APP_ID> --format aws-credentials --open-browser --write-aws-credentials --session-duration <DURATION> --cache-access-token --expiry-aws-variables

And the new error is:

WARNING: issue with okta.yaml file. Run `okta-aws-cli debug` command for additional diagnosis.
Error: open /Users/<USERNAME>/.okta/okta.yaml: no such file or directory

I verified that this pops up each time we run the command but never is resolved automatically by the system, but it feels like it could be. Can the okta-aws-cli just create this folder and file if it doesn't exist, or emit an error if it's unable to create the items due to local permissions?

estokes-vs avatar Aug 01 '24 19:08 estokes-vs