Posted On: Jan 9, 2020
You can now develop your Amazon 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 Amazon 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 Amazon CLI or Amazon 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 Amazon Web Services 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”.