common-fate / granted

The easiest way to access your cloud.
https://granted.dev
MIT License
1k stars 93 forks source link

granted sso generate/populate - TooManyRequestsException #458

Closed rajkamalhm closed 12 months ago

rajkamalhm commented 1 year ago

Generating sso config returns 429 status code from AWS - https://docs.aws.amazon.com/singlesignon/latest/PortalAPIReference/API_ListAccountRoles.html#API_ListAccountRoles_Errors


> granted sso populate --no-credential-process --profile-template "{{ .AccountName }}/{{ .AccountID }}" --sso-region eu-west-1 https://x-xxxxxxx.awsapps.com/start
[i] listing available profiles from AWS IAM Identity Center...  
[✘] operation error SSO: ListAccountRoles, exceeded maximum number of attempts, 3, https response error StatusCode: 429, RequestID: 85c43326-ebfb-4d68-b496-5558cbc9064c, TooManyRequestsException: HTTP 429 Unknown Code```
karlatkinson commented 1 year ago

I'm seeing this on generate too. granted sso generate --sso-region eu-west-1 https://xxxxxxxx.awsapps.com/start We have a large number of accounts and roles within them (around 200 accounts with around 5 roles in each)

chrnorm commented 12 months ago

Resolved in #463!