From 004586eae59b0b7edec6fafba15ed34d508103f2 Mon Sep 17 00:00:00 2001 From: Rick Wargo Date: Fri, 3 Nov 2023 15:28:05 -0400 Subject: [PATCH] Update to latest python version Python3.8 causes a runtime import module error: "Unable to import module 'lambda_function': urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips 26 Jan 2017'. See: https://github.com/urllib3/urllib3/issues/2168" --- sample-apps/blank-python/template.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample-apps/blank-python/template.yml b/sample-apps/blank-python/template.yml index d2b27aee..7c089ec2 100644 --- a/sample-apps/blank-python/template.yml +++ b/sample-apps/blank-python/template.yml @@ -6,7 +6,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: lambda_function.lambda_handler - Runtime: python3.8 + Runtime: python3.11 CodeUri: function/. Description: Call the AWS Lambda API Timeout: 10 @@ -25,4 +25,4 @@ Resources: Description: Dependencies for the blank-python sample app. ContentUri: package/. CompatibleRuntimes: - - python3.8 + - python3.11