Posted On: Oct 6, 2023

Amazon Lambda now supports Python 3.11 as a managed runtime and a container base image in the Amazon Web Services China (Beijing) Region, Operated by Sinnet, and the Amazon Web Services China (Ningxia) Region, Operated by NWCD. We will automatically apply updates to the Python 3.11 managed runtime and to the Amazon-provided Python 3.11 base image, as they become available. Powertools for Amazon Lambda, a developer toolkit to implement serverless best practices and increase developer velocity, also supports Python 3.11.

Python 3.11 contains major performance enhancements over Python 3.10. With Lambda’s per-millisecond billing model, workloads using Python 3.11 typically run faster and cheaper than with older Python versions. Developers creating serverless applications can take advantage of new Python 3.11 language features, improving efficiency and making code more readable. For more information on Lambda’s support for Python 3.11, see our product documentation.

To deploy Lambda functions using Python 3.11, upload the code through the Lambda console and select the Python 3.11 runtime. You can also use the Amazon CLI, Amazon Serverless Application Model (SAM) and Amazon CloudFormation to deploy and manage serverless applications written in Python 3.11. Additionally, you can also use the Amazon-provided Python 3.11 base image to build and deploy Python 3.11 functions using a container image. To migrate existing Lambda functions running earlier Python versions, review your code for compatibility with Python 3.11 and then update the function runtime to Python 3.11.

Visit our product page for more information about Amazon Lambda or sign in to the Amazon Lambda console to get started.