Posted On: Nov 19, 2018
You can now develop your AWS Lambda functions using Python 3.7 in addition to the already supported 2.7 and 3.6 versions. Python 3.7 is the newest major release of the Python language, and it contains many new features such as support for data classes, customization of access to module attributes, and typing enhancements.
To get started deploying your Python code as a Lambda function, you simply upload your function code via the AWS CLI or AWS Lambda console and select the Python 3.7 runtime. Lambda takes care of everything required to run and scale 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. Customers with existing Python functions can switch to the new runtime by editing their function configuration to set the runtime to “python3.7” and making necessary changes to be compatible with the new runtime.
You can review the Python 3.7 release notes and read the Python programming model in the AWS Lambda documentation to learn more about writing functions in Python 3.7.
The Python 3.7 runtime is available in all regions where Lambda is available. For more information on where AWS Lambda is available, see the AWS region table. Please visit our product page for more information about AWS Lambda or log in to the AWS Lambda console to get started.