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.
This is a lightning talk I gave to the CPLUG November 2020 meeting on how to use jq with bash for dealing with JSON in modern tooling.
NOTE: use the space bar to scroll.
So I was recently messing with Docker to keep up on my skills, and I
wanted to see how much resources were required by each container over a
given time period. So I came up with the following command to run in the
terminal to collect it.