-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add --no-cache
to not use the cache and force a refresh
#574
Comments
Not a bug, but more of as-designed. If you have many accounts it can take a few dozen (or more) seconds for AWS to return all the results due to rate limiting. Even a few accounts can add noticeable lag to many Anyways, this is all documented in the docs, so I encourage you to read them. That said, this question (or versions of it) seems to be coming up enough that I should see about adding a |
--no-cache
to not use the cache and force a refresh
How come aws-sso-util seems to handle many accounts thought? |
Because aws-sso-util has fewer features and can rely solely on the |
How come it is bringing back new active accounts though? like even running aws-sso list now it still does not show my tmp-gh109 so im unable to access this acc |
Sorry, not sure I understand what you're saying. Can you rephrase and perhaps provide more details? Are you suggesting you found a bug? |
Force refreshing the cache and query AWS on a per-command basis for config-profiles, console, exec and list. Fixes: #574
Force refreshing the cache and query AWS on a per-command basis for config-profiles, console, exec and list. Fixes: #574
Hi, so I have created a new AWS Account called I can see the new account in my AWS SSO Okta, so I know it is there. Running the below with the account ID I also get
So it is like the tool is not pulling latest from AWS SSO, or it has cached so there for not doing an API call, or there is some sort of bug. |
Force refreshing the cache and query AWS on a per-command basis for config-profiles, console, exec and list. Fixes: #574
Output of
aws-sso version
:Describe the bug:
We have a unique scenario where we are creating/deleting many accounts, it appears that when we run aws-sso list it appears to be returning / caching old accounts that have been deleted, and it doesn't appear to be showing any new accounts. Using this tool https://github.com/benkehoe/aws-sso-util I can see the new accounts, and also it does not return old accounts.
To Reproduce:
As this has our accounts info, I can't copy and paste, but for context I have around 40 AWS accounts with 2 roles each that are active, maybe there is a limitation on how many you bring back, or maybe you cache accounts when bringing them back instead of doing api call every time
An example is in my AWS SSO I can see
tmp-gh109
but when I run aws-sso list, it does not appear in the list. However, runningaws-sso-util roles
I can see that account.I can also see
tmp-gh108
which has been deleted from AWS SSO and does not show inaws-sso-util
but shows inaws-sso list
The text was updated successfully, but these errors were encountered: