Posted On: Jun 24, 2023
Amazon Lambda now supports Python 3.10 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. Developers creating serverless applications in Lambda with Python 3.10 can take advantage of numerous Python language enhancements to make code more readable and maintainable. These include pattern matching for data structures, parenthesized context managers to simplify managing resources such as file handles or database connections, and better error handling. For more information on Lambda’s support for Python 3.10, see our product documentation.
To deploy Lambda functions using Python 3.10, upload the code through the Lambda console and select the Python 3.10 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.10. Additionally, you can also use the Amazon-provided Python 3.10 base image to build and deploy Python 3.10 functions using a container image. To migrate existing Lambda functions running earlier Python versions, review your code for compatibility with Python 3.10 and then update the function runtime to Python 3.10.
We will automatically apply updates to the Python 3.10 managed runtime and to the Amazon-provided Python 3.10 base image, as they become available.
Visit our product page for more information about Amazon Lambda or sign in to the Amazon Lambda console to get started.