最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Lambda Layer for pdf2docx library - Stack Overflow

programmeradmin1浏览0评论

i want to write a lambda function for a microservice that’ll poll for messages in SQS, retrieve pdf from S3, and convert it to docx using pdf2docx, but pdf2docx cannot be used directly, so i want to use layers. The problem is that the maximum size for the zip file archive for layers is 50MB, and this comes out to be 104MB, and i can’t seem to reduce it to under 50MB

How can i reduce the size to make it work, and while ensuring the size of the zip archive is under 50MB?

I tried using S3 as a source for the layer, but it said unzipped files must be less than 250MB I’m not sure what “unnecessary” files are present in this library so i don’t know what i should delete before zipping this package.

发布评论

评论列表(0)

  1. 暂无评论