Serverless service for handling using Puppeteer Headless Chrome feature like screenshoot or PDF print.
git clone https://github.com/atnic/puppeteer-service.git
cd puppeteer-service
npm install
Add .env file to setup REGION
- Config Github Secret repo to setup this, see
.envfile for referencesAWS_ACCESS_KEY_ID&AWS_SECRET_ACCESS_KEYfor productionAWS_ACCESS_KEY_ID_STAGING&AWS_SECRET_ACCESS_KEY_STAGINGfor stagingAWS_ACCESS_KEY_ID_DEV&AWS_SECRET_ACCESS_KEY_DEVfor devAWS_REGION
- After you setup secret
- Commit to
mainbranch will go to prod - Commit to
release/*branch will go to staging - Commit to
developbranch will go to dev
- Commit to
- Make sure you already have profile defined in
.aws/credentialswhere you want to deploy to. - Make sure you're on
mainbranch - Edit your
.envto setup REGION - Then run
serverless deploy --aws-profile [your-profile] --stage prod
- Don't forget to add it to your API Gateway if you use it.