Lambda Layers are a convenient way to manage common dependencies between different Lambda Functions.
We will build and deploy a Lambda layer that will be used in the code that creates our training data.
You can build the Lambda Layer yourself or use a premade layer in the next step.
The following set of (Linux) commands will create a layer of this package alongside puppeteer-core:
git clone --depth=1 https://github.com/jacobcantwell/chrome-aws-lambda.git && \
cd chrome-aws-lambda && \
The above will create a chrome-aws-lambda.zip file, which can be uploaded to your Layers console.
Open AWS Lambda Layers
Open Create layer
You should see Lamba Layer was successfully created
Open Lambda to continue. In the next step we will create a Lambda Function that will generate the training data images.