aws-sso-util
aws-sso-util copied to clipboard
"aws-sso-util roles" takes too long
aws-sso-util roles
takes a long time. In my case, 38 seconds for 286 roles.
Can we make it faster?
You have to iterate over all available accounts, and iterate over the roles in each account. In theory, it's possible that making the role-getting for a page of accounts concurrent with getting the next page of accounts could speed it up, but it would take some work to handle throttling/retries correctly. In fact, I'd say such a thing for boto3 pagination probably warrants its own library.