builder/amazon: Use service default retries.

Each service has its own preconfigured number of times to retry.
Lets use that instead of setting a global number.
pull/6019/head
Matthew Hooker 8 years ago
parent d2f9fd1afc
commit e483087574
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1

@ -96,7 +96,7 @@ func (c *AccessConfig) Session() (*session.Session, error) {
creds := credentials.NewChainCredentials(providers)
config := aws.NewConfig().WithMaxRetries(11).WithCredentialsChainVerboseErrors(true)
config := aws.NewConfig().WithCredentialsChainVerboseErrors(true)
if c.RawRegion != "" {
config = config.WithRegion(c.RawRegion)

Loading…
Cancel
Save