This project is coming to demonstrate how to call chromeless from AWS Lambda function
Deploy Chromeless Proxy service using serverless
Modify the endpointUrl and apiKey in handler.js
const chromeless = new Chromeless({
remote: {
endpointUrl: 'https://XXXXXXXXXX.execute-api.eu-west-1.amazonaws.com/dev'
apiKey: 'your-api-key-here'
},
})
# install dependencies
$ npm install
# test the function locally
$ serverless invoke local -f invokeRemoteChromeless
# deploy the Lambda function to AWS
$ serverless deploy