diff --git a/pkg/aws/clients.go b/pkg/aws/clients.go index 3f83a312..918dbad1 100644 --- a/pkg/aws/clients.go +++ b/pkg/aws/clients.go @@ -34,7 +34,8 @@ import ( func NewSession(region, profile, accessKey, secretKey, sessionToken, awsSharedCredentialsFile string) (*session.Session, error) { cfg := aws.Config{ - Region: aws.String(region), + Region: aws.String(region), + MaxRetries: aws.Int(5), // set the maximum number of retries } if profile != "" {