Merge pull request #6641 from hashicorp/increase_retries

Increase retries
This commit is contained in:
Megan Marsh 2018-09-04 11:39:28 -07:00 committed by GitHub
commit 349f9ae62b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ func (c *AccessConfig) Session() (*session.Session, error) {
config.WithCredentials(staticCreds) config.WithCredentials(staticCreds)
} }
// default is 3, and when it was causing failures for users being throttled
config = config.WithMaxRetries(20)
if c.RawRegion != "" { if c.RawRegion != "" {
config = config.WithRegion(c.RawRegion) config = config.WithRegion(c.RawRegion)
} else if region := c.metadataRegion(); region != "" { } else if region := c.metadataRegion(); region != "" {