Back
This solution is provided by AWS themselves. Please follow these steps to add python or any libraries you want to add.
Upload deployment package to your Lambda function
Open the AWS Lambda console.
Choose Functions on the navigation pane, and then open your function.
In the Function code section, expand the Code entry type drop-down list, and then choose to Upload a ZIP file.
Choose Upload, and then select your .zip file.
Choose Save.
Choose Test.
For more context on the same, check this out - https://aws.amazon.com/premiumsupport/knowledge-center/build-python-lambda-deployment-package/
Want to become an AWS expert? Check out out Course on AWS Solutions Architect Certification
Learn how we helped 50,000+ professionals like you !
31k questions
32.8k answers
501 comments
693 users