aws-samples / aws-cdk-examples

Example projects using the AWS CDK
Apache License 2.0
4.95k stars 2.1k forks source link

Lambda Python Runtimes `<=3.7` no longer supported by CloudFormation #1003

Open malachi-constant opened 3 months ago

malachi-constant commented 3 months ago

Describe the bug

Lambda Functions with Python Runtimes <=3.7 are no longer supported by CloudFormation

Expected Behavior

Successful deployment of examples in repositories.

Current Behavior

Functions created using the python3.7 runtime fail with..

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 the new runtime (python3.12) while creating or updating functions.

Reproduction Steps

A current failing example:

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.131.0

Framework Version

No response

Node.js Version

v18.16.0

OS

Mac

Language

Python

Language Version

No response