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.