Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nisaacson/aws-lambda-xvfb
builds Xvfb binary to run on AWS lambda
https://github.com/nisaacson/aws-lambda-xvfb
aws aws-lambda lambda serverless
Last synced: 6 days ago
JSON representation
builds Xvfb binary to run on AWS lambda
- Host: GitHub
- URL: https://github.com/nisaacson/aws-lambda-xvfb
- Owner: nisaacson
- Created: 2017-03-04T22:48:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-05T22:27:38.000Z (over 7 years ago)
- Last Synced: 2024-10-31T14:25:43.073Z (13 days ago)
- Topics: aws, aws-lambda, lambda, serverless
- Language: Shell
- Size: 27.1 MB
- Stars: 69
- Watchers: 4
- Forks: 12
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-lambda-xvfb
builds Xvfb binary to run on AWS lambda
## Getting started
Build the image and run it locally. Then verify xvfb & fluxbox work correctly by connecting with a vnc client
```
$(aws ecr get-login)
docker build -t aws-lambda-xvfb .
docker run -p 5900:5900 --detach aws-lambda-xvfb
```Connect to localhost:5900 with a vnc client such as https://chrome.google.com/webstore/detail/vnc®-viewer-for-google-ch/iabmpiboiopbgfabjmgeedhcmjenhbla?hl=en
## Running in AWS
See the `example/` folder for a demonstration application that can run in AWS. Edit the `example/serverless.yml` with the appropriate iam role under `role: `.
Ensure this role has access to write files to s3
```
cd example
sls deploy
```Make a request to the deployed url printed out by sls deploy. This should return a path to a file on S3. Download that file and verify that it shows a video of the recorded screen setup via `Xvfb` in AWS lambda
```
curl https://api-gateway-url.amazonaws.com/dev/demo
```