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

Multiple Accounts at Once #94

Open
fsev opened this issue Nov 24, 2021 · 3 comments
Open

Multiple Accounts at Once #94

fsev opened this issue Nov 24, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@fsev
Copy link

fsev commented Nov 24, 2021

I frequently find myself managing multiple AWS accounts or a whole organization and need to query easily via scripts across 5/10/20 accounts.

It would be hugely useful to not have make multiple cli commands to aws_okta_keyman to login to each account and rather have the ability to login and generate a secret/access/token combo for every account that OKTA allows me to. Any scripts could then leverage a profile for each account to create boto sessions, as an example.

There isn't really an alternative outside of multiple cli commands, which can be tedious. I will likely fork so I can rapidly build this out (and b/c this would probably break some existing functionality / need a larger rewrite), but wanted to drop this issue in here to see your thoughts / if others have this problem.

@fsev fsev added the enhancement New feature or request label Nov 24, 2021
@nathan-v
Copy link
Owner

nathan-v commented Dec 3, 2021

You can already do this today; an Okta account with multiple AWS entries should prompt you for which AWS account you want to use by default. Are you on an older version or using an old config?

An example is shown in the readme; https://github.com/nathan-v/aws_okta_keyman#running-aws-okta-keyman

@fsev
Copy link
Author

fsev commented Dec 3, 2021

As its written/described, you can login to one account using keyman (and pick from a list) but if you want to get into all 4, you'd have to run keyman 4 times and pick a different each account each time.

The key here is I'm looking to get into ALL accounts at once, not go one at a time, which when you have 20 accounts can become tedious. This way login for the day/hour can be simplified and scripts can be leveraged to query across accounts with ease.

@nathan-v
Copy link
Owner

nathan-v commented Dec 3, 2021

Ah, yeah! You want to refresh multiple at once. Something I've definitely considered and wanted to do before but I didn't have a strong need for it at my org. Makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants