{"repo":"shelfio/libreoffice-lambda-layer","free":true,"listed":false,"github":"https://github.com/shelfio/libreoffice-lambda-layer","clone":"git clone https://github.com/shelfio/libreoffice-lambda-layer.git","description":null,"language":"Shell","stars":120,"topics":["lambda-layer","libreoffice","aws","aws-lambda"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"LibreOffice for AWS Lambda as a layer 95 MB LibreOffice to fit inside AWS Lambda Layer compressed with Brotli or gzip Based on the serverless-libreoffice project. Getting Started Click on Layers and choose \"Add a layer\", and \"Provide a layer version ARN\" and enter the following ARN. See the table below for the list of supported regions and runtimes. Works well with aws-lambda-libreoffice npm package What's inside this layer? libreoffice-brotli layer contains lo.tar.br file which is LibreOffice v6.4.0.1. Node.js has native Brotli unpacking support since version 10 so it's easy to unpack this file natively. Alternatively, you can use aws-lambda-libreoffice npm package to simplify this task. libreoffice-gzip layer contains lo.tar.gz file which is LibreOffice v6.4.0.1. How do I use this layer to launch LibreOffice? If you don't use aws-lambda-libreoffice npm package, then these steps are roughly what you need to do. 1. This layer just adds /opt/lo.tar.br or /opt/lo.tar.gz file to your Lambda runtime 2. Unpack /opt/lo.tar.br or /opt/lo.tar.gz file during Lambda execution into /tmp folder which has 512 MB of free space. Make sure to do this OUTSIDE function handler code. This is an expensive task, so better to make it once on a warm start. 3. LibreOffice binary will be located available at /opt/instdir/program/soffice.bin 4. Check out /test/index.js for CLI arguments needed to run LibreOffice to convert a .txt file to .pdf for more details Version ARNs LibreOffice v6.4.0.1 (Amazon ","default_branch":null,"files":null,"tree":[],"storefront":"/r/shelfio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shelfio/libreoffice-lambda-layer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}