aws-sso-util icon indicating copy to clipboard operation
aws-sso-util copied to clipboard

"aws-sso-util roles" takes too long

Open Shumakriss opened this issue 3 years ago • 1 comments

aws-sso-util roles takes a long time. In my case, 38 seconds for 286 roles.

Can we make it faster?

Shumakriss avatar Sep 17 '21 14:09 Shumakriss

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.

benkehoe avatar Sep 18 '21 18:09 benkehoe