Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rfoel/chromium

Deploy @sparticuz/chromium as a AWS Lambda Layer.
https://github.com/rfoel/chromium

aws aws-lambda aws-layers chromium google-chrome

Last synced: 2 months ago
JSON representation

Deploy @sparticuz/chromium as a AWS Lambda Layer.

Awesome Lists containing this project

README

        

# chromium

Deploy [@sparticuz/chromium](https://github.com/Sparticuz/chromium) as a AWS Lambda Layer.

## Usage

```yaml
plugins:
- serverless-latest-layer-version

functions:
handler:
handler: handlers/handler.handler
layers:
- arn:aws:lambda:${aws:region}:${aws:accountId}:layer:chromium:latest
```

## Latest layer version

For convenience, use the plugin [serverless-latest-layer-version](https://github.com/mooyoul/serverless-latest-layer-version) to always get the latest layer version.

## package.json

The `package.json` is only used to keep track of the `@sparticuz/chromium` version with dependabot.

## Deploy

`serverless/github-action` is used to deploy the layer to the AWS account of your choice, you only have to configure `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables.