mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 17:53:59 -04:00
Merge pull request #6641 from hashicorp/increase_retries
Increase retries
This commit is contained in:
@@ -43,6 +43,9 @@ func (c *AccessConfig) Session() (*session.Session, error) {
|
||||
config.WithCredentials(staticCreds)
|
||||
}
|
||||
|
||||
// default is 3, and when it was causing failures for users being throttled
|
||||
config = config.WithMaxRetries(20)
|
||||
|
||||
if c.RawRegion != "" {
|
||||
config = config.WithRegion(c.RawRegion)
|
||||
} else if region := c.metadataRegion(); region != "" {
|
||||
|
||||
Reference in New Issue
Block a user