From b50fe930e5c6195c8e9cd364f7ae606af24fde26 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Mon, 23 Nov 2020 00:39:17 -0800 Subject: [PATCH] fix retries (#10290) --- builder/amazon/common/access_config.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builder/amazon/common/access_config.go b/builder/amazon/common/access_config.go index ed08b5a67..b441f0477 100644 --- a/builder/amazon/common/access_config.go +++ b/builder/amazon/common/access_config.go @@ -403,6 +403,12 @@ func (c *AccessConfig) Prepare(ctx *interpolate.Context) []error { } 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 }