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

gimme-aws-creds overwrites config file everytime #77

Closed
bobstead opened this issue Aug 15, 2018 · 5 comments
Closed

gimme-aws-creds overwrites config file everytime #77

bobstead opened this issue Aug 15, 2018 · 5 comments
Labels

Comments

@bobstead
Copy link

Running gimme-aws-creds --configure -p <profile> overwrites the entire configuration file. This wipes out the default and other profiles you may have had. I also noticed that when I updated to the latest version, it had wiped out my previous config file.

Seems like the functionality changed with the latest release. Previously, if you ran the --configure with a different profile name, it would be appended to the existing configuration file. Now that is no longer the case and any run on --configure wipes out the entire file.

Could we get the old functionality back where the new configuration would be appended instead of the entire file being overwritten?

@El-Dringo-Brannde
Copy link

@badbeeker Sounds like a regression, I'll look into it. Can you specify the last version you used, and the version you are experiencing the bug on?

@Ghazgkull
Copy link

This bug eliminates the ability to use gimme-aws-creds --configure to set up multiple profiles. The last profile you configure always overwrites the entire ~/.okta_aws_login_config file.

As a workaround, I've found that you can manually copy in multiple profile blocks and gimme-aws-creds will correctly process them so you can use gimme-aws-creds --profile <profile> again.

@Ghazgkull
Copy link

Little more detail on the workaround for anyone trying to do it:

  1. Run gimme-aws-creds --configure and create a named profile.
  2. Run gimme-aws-creds --profile <profile> --register_device to get your device_token configured.
  3. Open ~/.okta_aws_login_config in your favorite editor.
  4. Copy/paste the profile that's in the config and make whatever changes you want for additional profiles. In my experience, a single blank line between profiles works.

@El-Dringo-Brannde
Copy link

Remediated in commit 72d64c4
and PR #103

@Sector95
Copy link
Contributor

Sector95 commented Feb 1, 2019

Fix will be available in the v1.1.3 release.

@Sector95 Sector95 closed this as completed Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants