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

get-roles command can fail if account has no alias #49

Open
ghost opened this issue Apr 4, 2022 · 0 comments
Open

get-roles command can fail if account has no alias #49

ghost opened this issue Apr 4, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 4, 2022

The regex used to get account information makes the assumption that the account has an alias. Accounts with aliases show up like this:

Account: {ACCOUNT_ID} ({ALIAS})

But accounts without aliases show up like this:

Account: {ACCOUNT_ID}

At the very least, the regex needs not to cause aws-okta-processor to fail on encountering an account without an alias, but because the alias is baked in to so many other things, the simplest fix might also be to fall back on using the account id as the alias in the event that the account has no alias.

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

No branches or pull requests

0 participants