Exposing Pandoc to Create PDFs using AWS Lambda
26 November 2024
I needed an endpoint to convert markdown to a standard PDF for reasons. This is
how I made a simple low traffic markdown to pdf converter using AWS Lambda and
pandoc. When evaluating solutions I discovered that everything either
required webkit or a native LaTeX installation. All options that are painful to
maintain from a user perspective for a script I was building. This solution
ensures that it will keep working into the future by freezing the dependencies.
AWS Lambda is really neat because it will let you put whatever you want inside
of a docker image and expose it openly on the internet. The hard part is
putting together all the steps and doing the docker stuff. So here’s what I did
to make it.