CentralizedArchitectureApplianceVpc2Az.yaml stack template wont deploy due to deprecated Lambda Python runtime version being referenced.
2024-09-04 13:27:08 UTC+0100
VpceServiceName
CREATE_FAILED
-
Resource handler returned message: "The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions. We recommend you use a supported runtime while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: obfuscated)" (RequestToken: obfuscated, HandlerErrorCode: InvalidRequest)
Problem
CentralizedArchitectureApplianceVpc2Az.yaml
stack template wont deploy due to deprecated Lambda Python runtime version being referenced.Testing with Runtime: python3.12 worked fine.
Solution
Replace the deprecated Python runtime reference with the latest 3.x version. Before:
Runtime: python3.7
After:Runtime: python3.12
Code path - https://github.com/aws-samples/aws-gateway-load-balancer-code-samples/blob/main/aws-cloudformation/centralized_architecture/CentralizedArchitectureApplianceVpc2Az.yaml#L968Update in Git repo.
Update the files in s3://tech-content-us-west-2.s3-us-west-2.amazonaws.com to make sure that the 1-click solution works as well.