fix retries (#10290)

This commit is contained in:
Megan Marsh 2020-11-23 00:39:17 -08:00 committed by GitHub
parent 5a804de9a3
commit b50fe930e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -403,6 +403,12 @@ func (c *AccessConfig) Prepare(ctx *interpolate.Context) []error {
} }
c.PollingConfig.LogEnvOverrideWarnings() c.PollingConfig.LogEnvOverrideWarnings()
// Default MaxRetries to 10, to make throttling issues less likely. The
// Aws sdk defaults this to 3, which regularly gets tripped by users.
if c.MaxRetries == 0 {
c.MaxRetries = 10
}
return errs return errs
} }