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 = { /**