Hi does anyone know how can I find out when will AWS lambda upgrade their support to python 3.9? Last time they upgraded to 3.8 was 2019 and it’s been a while since v3.9 released.
I’m keen to use the latest v3.9 language features but sadly can’t do it in AWS
AWS Lambda supports Python 3.6, 3.7 and version 3.8. As always, you should test your functions for Python 3 language compatibility before applying changes to your production functions. The Python community offers helpful guides and tools to help you port Python 2 code to Python 3: Porting Python 2 code to Python 3.
If you're currently using Python 3.6 as your runtime for AWS SDK for Python or AWS CLI v1, we recommend downloading Python 3.8 or later. For services hosted on Amazon Elastic Compute Cloud (Amazon EC2), most AWS Quick Start AMIs now provide Python 3.8+ out of the box: Amazon Linux 2.
You can run Python code in AWS Lambda. Lambda provides runtimes for Python that run your code to process events. Your code runs in an environment that includes the SDK for Python (Boto3), with credentials from an AWS Identity and Access Management (IAM) role that you manage.
AWS Lambda now supports Node. js 16 as both a managed runtime and a container base image. Developers creating serverless applications in Lambda with Node. js 16 can take advantage of new features such as support for Apple silicon for local development, the timers promises API, and enhanced performance.
As of 16.08.2021 Python 3.9 is now supported:
AWS Lambda now supports Python 3.9 as both a managed runtime and a container base image. You can now author AWS Lambda functions in Python 3.9 and use its new features, such as support for TLS 1.3, new string and dictionary operations, and improved time zone support. Python 3.9 also includes performance optimizations that you can benefit from without making any code changes. For more information on Lambda’s support for Python 3.9, see our blog post at Python 3.9 runtime now available in AWS Lambda.
— Source
AWS typically don't have a public roadmap for these, but you can now create a lambda function from a docker container that runs Python 3.9 if you want to use that version.
You'd have to build an image that includes the awslambdaric
package from PyPi, which is the interface AWS uses to talk to Lambda. That package is compatible with python 3.9 already.
More information about building images for Lambda in Python see: Deploy Python Lambda functions with container images
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With