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.
This commit is contained in:
Matthew Hooker 2018-03-14 22:26:33 -07:00
parent d2f9fd1afc
commit e483087574
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 1 additions and 1 deletions

View File

@ -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)