Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
276 views
in Technique[技术] by (71.8m points)

amazon web services - Reduce python AWS Lambda size for deployment on CloudFront

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...