From 263a1428ca8f5b4b4b505f9689fbe1ffe3c30839 Mon Sep 17 00:00:00 2001 From: Dave Arnold Date: Wed, 23 Apr 2025 13:26:07 -0700 Subject: [PATCH] Add urllib3 import and disable SSL verification warnings; update requirements.txt to remove outdated dependencies --- eks_automation/app.py | 4 ++++ requirements.txt | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/eks_automation/app.py b/eks_automation/app.py index 9f49bd6..a839329 100644 --- a/eks_automation/app.py +++ b/eks_automation/app.py @@ -13,6 +13,7 @@ import time import requests import json +import urllib3 from urllib.parse import urlparse from datetime import datetime import traceback @@ -20,6 +21,9 @@ import boto3 from botocore.exceptions import ClientError +# Disable SSL verification warnings +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) + # Initialize the logger logger = logging.getLogger() logger.setLevel("INFO") # Set to "ERROR" to reduce logging messages. diff --git a/requirements.txt b/requirements.txt index 0a7dd9f..0f3d269 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ -boto3>=1.34.0 -botocore>=1.34.0 requests>=2.31.0 +urllib3>=2.0.0 +boto3>=1.28.0 +botocore>=1.31.0