Original post

This is an example of how to convert HTML code into a PDF using AWS’ Lambda service and S3 Triggers. So that once a HTML file is upload to S3 it will automatically be converted into a PDF which should appear in the same bucket shortly after – all using a serverless function.
To do this, other than the standard library, we’re using a wkhtmltopdf library and the AWS sdk.