AWS Lambda now supports Python 3.8

Posted on: Nov 18, 2019

You can now develop your AWS Lambda functions using Python 3.8. This is the newest major release of the Python language, and contains many new features such as assignment expressions, positional-only arguments, and typing improvements. Lambda functions written in Python 3.8 run on the latest generation of Amazon Linux, Amazon Linux 2. You can read the Python programming model in the AWS Lambda documentation to learn more about writing functions in Python 3.8. 

To get started deploying your Python code as a Lambda function, upload your function code via the AWS CLI or AWS Lambda console and select the Python 3.8 runtime. Lambda takes care of running and scaling your function with high availability. You can also use the AWS Serverless Application Model (SAM) to deploy and manage your serverless application authored in Python. If you have existing Python functions you can migrate them to the new runtime by making any necessary changes to their code for compatibility with Python 3.8, and changing the function’s runtime configuration to “python3.8”. 

The Python 3.8 runtime is available in all Regions where Lambda is available. Please visit our product page for more information about AWS Lambda or log in to the AWS Lambda console to get started.