Skip to content

Commit 5e655aa

Browse files
authored
fix: granted TooManyRequests exception (#912)
1 parent fe213f9 commit 5e655aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/granted/sso.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func (s AWSSSOSource) GetProfiles(ctx context.Context) ([]awsconfigfile.SSOProfi
327327
// We've disabled the built-in AWS client rate limiting below because we're using uber's rate limit package to rate limit the AWS SSO API calls
328328
// The issue is caused because all Go routines use the same token bucket and it runs out of tokens. Link to the solution: https://github.com/aws/aws-sdk-go-v2/issues/1665
329329
so.RateLimiter = ratelimit.NewTokenRateLimit(100000)
330-
so.MaxAttempts = 15
330+
so.MaxAttempts = 50
331331
})
332332
}))
333333
if err != nil {

0 commit comments

Comments
 (0)