Maintained with ☕️ by
IcePanel logo

AWS Lambda adds support for Python 3.10



AWS Lambda now supports Python 3.10 as both a managed runtime and a container base image. 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 blog post at [Python 3.10 runtime now available in AWS Lambda]( 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 [AWS CLI](, [AWS Serverless Application Model (AWS SAM)]( and [AWS CloudFormation]( to deploy and manage serverless applications written in Python 3.10\. Additionally, you can also use the [AWS-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 Node versions, review your code for compatibility with Node.js 18 and then update the function runtime to Python 3.10. AWS will automatically apply updates to the Python 3.10 managed runtime and to the AWS-provided Python 3.10 base image, as they become available. The Python 3.10 runtime is available in all [Regions where Lambda is available](, except for China and GovCloud Regions. Visit our [product page]( for more information about AWS Lambda or sign in to the [AWS Lambda console]( to get started.