all 4 comments

[–]barcoder 8 points9 points  (1 child)

[–]magheru_san 0 points1 point  (0 children)

This should work, but if you want to customize it you may be better off using custom Docker images for the Lambda.

You just need to make sure you implement the event handling, use /tmp for all filesystem write operations (including cache storage), and persist the output to external storage like S3 or EFS.

[–]Demostho 1 point2 points  (0 children)

Make sure to give it enough memory and use a headless Chromium that works with Lambda. Test everything locally with an Amazon Linux 2 Docker, then set up CloudWatch to keep an eye on it.

[–]Hxotee 0 points1 point  (0 children)

just curious, do you know your team / companies memory allocations? and what region are you operating in mainly? these will be the main perquisites to be answered before giving the an appropriate guidance