We have a Lambda function in python using below libraries
pyOpenSSL==18.0.0
protobuf==3.14.0
The python code is less than 100KB, but with the above dependencies included the size goes to more than 4MB.
Requirement is to deploy this Lambda on a CloudFront distribution (Lambda@Edge) for which size of function with dependencies cannot exceed 1MB.
Is there any way to achieve this?
Any help is appreciated.
Any help is appreciated.
question from:
https://stackoverflow.com/questions/65934283/reduce-python-aws-lambda-size-for-deployment-on-cloudfront 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…