From 0edfae549a65b1fd9f00c82299af86c968ebb3e8 Mon Sep 17 00:00:00 2001 From: Andres Riancho Date: Mon, 10 Jun 2019 07:16:16 -0300 Subject: [PATCH] Increase max_attempts just in case anything goes wrong (for example, api rate limit imposed by AWS) --- enumerate_iam/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/enumerate_iam/main.py b/enumerate_iam/main.py index 73d20ee..e377749 100644 --- a/enumerate_iam/main.py +++ b/enumerate_iam/main.py @@ -110,6 +110,7 @@ def get_client(access_key, secret_key, session_token, service_name, region): config = Config(connect_timeout=5, read_timeout=5, + max_attempts=30, retries={'max_attempts': 1}, max_pool_connections=MAX_POOL_CONNECTIONS * 2)