Skip to content

dbritto-dev/aws-lambda-puppeteer-bootstrap

Repository files navigation

Boilerplate for a Puppeteer on AWS Lambda


πŸš€ Bootstrap your Puppeteer function within seconds
Basic starter kit for Puppeteer on AWS Lambda

Requirements

Yarn to install npm packages:

npm install -g yarn

Getting started

# 1. Clone the project
git clone https://github.com/danilobrinu/aws-lambda-puppeteer-bootstrap.git

# 2. Navigate to the new project
cd aws-lambda-puppeteer-bootstrap

# 3. Install npm packages
yarn install

# 4. Code and upload to AWS Lambda
# zip the content of the dir and upload to AWS Lambda

Note: If the zip size is more than 10mb you need upload the zip to s3 and use the link in your AWS Lambda

Documentation

Project structure

File name γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€ Description γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€
β”œβ”€β”€ .editoconfig Use this file to configure your editor
β”œβ”€β”€ .gitignore User this file to configure ignore files by git
β”œβ”€β”€ .prettierc Use this file to configure the prettier formatter
β”œβ”€β”€ index.js The template for your AWS Lambda function
β”œβ”€β”€ package.json The npm package list
β”œβ”€β”€ README.md The documentation
└── yarn.lock The yarn lock file

Contributing

Your feedback is very helpful, please share your opinion and thoughts! If you have any questions or want to contribute yourself.