Home

Awesome

lighthouse4u-lambda

This is a sample project that can be cloned or forked to bring the power of Lighthouse4u and Google Lighthouse to AWS Lambda.

Architecture

Architecture

Designed to be as simple as possible and embrace the serverless model, pay only for what you use, with near limitless scale.

AWS services required:

Prerequisites

Setup

Below are a set of one-time tasks to configure your environment. Be sure all services reside in the same region.

Note: Configuring permissions is outside the scope of these instructions. But effectively you'll need to permit your Lambda to read/write to S3 and SQS.

At this point everything is wired up and ready for deployment. Optionally you may opt to attach your own custom domain to avoid having to use the ugly API Gateway auto-generated URL, ala https://983dsdf.execute-api.us-east-1.amazonaws.com/production/.

Configuration

Edit your config/defaults.json file (or environment file if you wish to use NODE_ENV instead).

If you wish to deploy from your local enivornment (faster), edit your package.json file:

Deployment

Anytime you make a change to config or code, you'll need to: