This is a tutorial using https://arc.codes and puppeteer to create full page screenshots in the cloud.
Here is a working demo:
https://i0lonqwgva.execute-api.us-west-2.amazonaws.com/?url=https://hyper63.com
Here is the tutorial:
https://blog.hyper63.com/capturing-full-page-screenshots-with-puppeteer-and-arc-codes/
Architect (https://arc.codes) is a great framework for working with AWS Lambda, it is lightweight intuitive and declarative, it also builds full cloud-formation files. Puppeteer is also amazing, page.evaluate will let you run JS on any webpage server-side, the combination can create a lot of neat solutions, I think.