FIXED pillow python version issue.

This commit is contained in:
Charles-Gormley
2024-11-11 20:13:59 -05:00
parent 758c2ccdde
commit d6117c8676

View File

@@ -128,7 +128,9 @@ def create_function(lambda_client, function_name, runtime, role, handler, zip_fi
raise
def get_pillow_layer_arn():
url = f"https://api.klayers.cloud/api/v2/p3.11/layers/latest/{os.getenv('AWS_REGION')}/json"
url = f"https://api.klayers.cloud/api/v2/p{os.getenv('PYTHON_VERSION')}/layers/latest/{os.getenv('AWS_REGION')}/json"
try:
response = requests.get(url)
response.raise_for_status()