Support for Python 3.12

Currently when specifying the runtime as Python3.12 I will see this error from serverless:

Configuration error at 'provider.runtime': must be equal to one of the allowed values [dotnet6, go1.x, java17, java11, java8, java8.al2, nodejs14.x, nodejs16.x, nodejs18.x, provided, provided.al2, python3.7, python3.8, python3.9, python3.10, python3.11, ruby2.7, ruby3.2]

Python3.12 is now supported by AWS Lambda: Lambda runtimes - AWS Lambda


It looks like someone has already created a PR to add it but it still hasn’t been merged feat: Add support for python3.12 runtime by LironEr · Pull Request #12300 · serverless/serverless · GitHub

1 Like

I am able to deploy 3.12 with sls v3.38. It does give the above warning though.

1 Like