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

withokta saving to incorrect aws profile name #374

Closed
gambitran opened this issue Jul 29, 2021 · 0 comments · Fixed by #380
Closed

withokta saving to incorrect aws profile name #374

gambitran opened this issue Jul 29, 2021 · 0 comments · Fixed by #380

Comments

@gambitran
Copy link

gambitran commented Jul 29, 2021

withokta script is not writing the inputted profile to the ~/.aws/credentials file block.

Steps to reproduce the behavior:

  1. okta-aws default sts get-caller-identity
  2. Select profile (e.g. Account 1234 - role-sandbox-developer)
  3. Check ~/.aws/credentials file
  4. Shows authenticated block as [role-sandbox-developer_1234]

Expected behavior
Should be writing to ~/.aws/credentials under [default] block (or other inputted name)

Workaround
Reverted back to old withokta script worked

cat <<EOF >"${PREFIX}/bin/withokta"

Additional context
Java - 12.0.1
okta-aws-cli.jar - 2.0.5
aws-cli - 2.2.23
Python - 3.8.8
MacOS - 11.4 Darwin/20.5.0

@gambitran gambitran changed the title withokta saving to correct aws profile withokta saving to incorrect aws profile name Jul 29, 2021
@dangeReis dangeReis mentioned this issue Aug 4, 2021
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 a pull request may close this issue.

1 participant