Generating PDF from HTML Template Using AWS Lambda

Utkarsha Bakshi
Geek Culture
Published in
6 min readFeb 3, 2023

--

In this article, we will learn how to generate a PDF file from an jinja2 HTML template using a Python AWS Lambda function. We will use pdfkit to generate the PDF from the HTML template. pdfkit uses wkhtmltopdf binaries under the hood. We will first create a Lambda layer for wkhtmltopdf binaries and then use it in our containerized Lambda function.

--

--