When you are on the Code tab in your lambda function, scroll all the way down below your code.
You will see "Code Properties" followed by "Runtime Settings".
In "Runtime Settings" click on the Edit button and you should be able to change the Python version to 3.9
Yes, when I updated the python version 3.6 to 3.9 then I got the error as below:
[ERROR] Runtime.ImportModuleError: Unable to import module 'src/myLambdaFunction': No module named 'cv2.cv2' Traceback (most recent call last):
However, when I reverted back to 3.6 it was working. I have deployed the zip package already with lambda. So what I need to update or change to fix it ?
How do you update packages on AWS Glue?asked 8 days ago
How do I update materials?Accepted Answerasked 5 years ago
Can Lambda automatically update layer configurations?asked 2 months ago
How to update Lambda Python 3.6 to 3.9Accepted Answerasked a month ago
[Announcement] The AWS Lambda console now supports bulk update of layersasked 3 months ago
How to add python libraries to lambda using the CDK?Accepted Answerasked 2 years ago
CloudWatch DashboardAccepted Answerasked 2 years ago
Lambda deprecation of botocore.vendored.requests - how to resolveasked 2 years ago
How to assign a lambda function alias to LexV2asked 5 months ago
script to update python runtime from 3.6 to 3.9 in lambda functionsAccepted Answerasked 2 months ago