department-of-veterans-affairs / monitor-dslogon-deprecated

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

AWS Lambda compatibility #1

Open dogweather opened 5 years ago

dogweather commented 5 years ago

From the original Issue:


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 we're currently using Puppeteer.

An Instruction guide that seems to be helpful:

dogweather commented 5 years ago

There's apparently another, easier, way using Lambda Layers:

cc: @boris-ning-usds