From 67ef9ebe56af22e51b3b42505be1b655f278bc87 Mon Sep 17 00:00:00 2001 From: Daniel Fuentes Date: Thu, 2 Aug 2018 13:24:43 -0700 Subject: [PATCH] set retries when creating session --- store/shared.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/store/shared.go b/store/shared.go index 63a5f6ec..11563e89 100644 --- a/store/shared.go +++ b/store/shared.go @@ -21,7 +21,8 @@ func getSession(numRetries int) (*session.Session, *string) { retSession := session.Must(session.NewSessionWithOptions( session.Options{ Config: aws.Config{ - Region: region, + Region: region, + MaxRetries: aws.Int(numRetries), }, SharedConfigState: session.SharedConfigEnable, },