From 4d1b3b571d76d235b547a4149e3c19b6510ebf6c Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Thu, 16 Jul 2020 10:34:05 +0200 Subject: [PATCH] fix(AWS Deploy): Fix resolution of SLS_AWS_REQUEST_MAX_RETRIES setting --- lib/plugins/aws/provider/awsProvider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/aws/provider/awsProvider.js b/lib/plugins/aws/provider/awsProvider.js index 039b7d2f6..961a1b5bc 100644 --- a/lib/plugins/aws/provider/awsProvider.js +++ b/lib/plugins/aws/provider/awsProvider.js @@ -22,7 +22,7 @@ const constants = { PromiseQueue.configure(BbPromise.Promise); -const MAX_RETRIES = Math.min(Number(process.env.SLS_AWS_REQUEST_MAX_RETRIES), 0) || 4; +const MAX_RETRIES = Math.max(Number(process.env.SLS_AWS_REQUEST_MAX_RETRIES), 0) || 4; const impl = { /**