Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 924 Bytes

File metadata and controls

26 lines (19 loc) · 924 Bytes

Serverless Lighthouse for AWS Lambda

Allows you to run Lighthouse from AWS Lambda using Serverless Headless Chrome.

Prerequisites

  • You are using node 8.10.0 (AWS Lambda does not support anything more recent at time of writing)
  • You have yarn installed
  • serverless version 1.35.1 installed.
  • AWS credentials configured.

Getting Started

git clone https://github.com/rhino88/serverless-aws-nodejs-lighthouse.git
cd serverless-aws-nodejs-lighthouse
yarn
# deploys the function to AWS
serverless deploy

Usage

serverless invoke -f lighthouse -l --data '{"target":"https://www.google.com/"}'