From 4ff662d8359ea7a6bd1eb12cfd6fdd562a27044b Mon Sep 17 00:00:00 2001 From: Alami Date: Tue, 15 Apr 2025 15:18:38 -0400 Subject: [PATCH] feat(aws): set maximum number of retries for AWS session --- pkg/aws/clients.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 != "" {