Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rfoel/chromium
- Owner: rfoel
- Created: 2023-02-05T13:50:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T19:57:51.000Z (about 1 year ago)
- Last Synced: 2024-09-30T17:01:30.413Z (3 months ago)
- Topics: aws, aws-lambda, aws-layers, chromium, google-chrome
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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-versionfunctions:
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.