fartbagxp / monitor-dslogon

A service for monitoring dslogon
MIT License
1 stars 1 forks source link

Change to serverless architecture #8

Open fartbagxp opened 6 years ago

fartbagxp commented 6 years ago
fartbagxp commented 6 years ago

This is actually a bit complicated because puppeteer and node_module installation for this project exceeds the maximum package size (250MB) for an AWS lambda job.

To get around this issue, we can use serverless-chrome which bundles up a headless binary for chrome for lambda deployment. This means a partial rewrite of how I'm currently using puppeteer.

Instruction guide that seems to be helpful: