https://github.com/cbschuld/ghostscript-aws-lambda-layer
Ghostscript as an AWS Lambda Layer
https://github.com/cbschuld/ghostscript-aws-lambda-layer
Last synced: 9 months ago
JSON representation
Ghostscript as an AWS Lambda Layer
- Host: GitHub
- URL: https://github.com/cbschuld/ghostscript-aws-lambda-layer
- Owner: cbschuld
- License: other
- Created: 2023-05-09T04:14:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-04T18:16:11.000Z (about 2 years ago)
- Last Synced: 2025-01-25T11:26:05.049Z (11 months ago)
- Language: Makefile
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Ghostscript Layer for AWS Lambda (v10.02.1)
[](https://github.com/cbschuld/ghostscript-aws-lambda-layer/actions/workflows/docker-workflow.yml)
Scripts to compile Ghostscript (gs) for AWS Lambda instances powered by Amazon Linux 2.x, for the `python3.7`, `python3.8`, `python3.9`, `python3.10`, `nodejs12.x`, `nodejs14.x`, `nodejs16.x` and the `nodejs18.x` lambda runtime.
## Description for AWS Serverless Application Repository
Static build of Ghostscript 10.02.1 for Amazon Linux (via the AWS SAM team), packaged as a Lambda layer. Also provides PDF files conversion support using ImageMagick (requires an [ImageMagick layer](https://github.com/cbschuld/imagemagick-aws-lambda-layer)).
## Prerequisites
If you want to build this environment yourself, you will need:
- Docker
- Unix Make environment
## Deploying to AWS as a layer
Run the following commands to deploy the Github compiled result as a layer in your AWS account.
```
wget https://github.com/cbschuld/ghostscript-aws-lambda-layer/releases/download/10.02.1/ghostscript-layer.zip
aws lambda publish-layer-version \
--layer-name ghostscript-v10-02-1 \
--description "Ghostscript 10.02.1" \
--compatible-runtimes python3.7 python3.8 python3.9 python3.10 nodejs14.x nodejs16.x nodejs18.x \
--compatible-architectures x86_64 \
--zip-file fileb://ghostscript-layer.zip
```
## Additional Info
For more information, check out:
- https://www.ghostscript.com/
## Author
Chris Schuld · [https://chrisschuld.com/](https://chrisschuld.com/)
Thank you to the original work by [Tomislav Capan](https://https://twitter.com/tomislavcapan)
## License
- These scripts: [MIT](https://opensource.org/licenses/MIT)
- Ghostscript:
- Each library has separate licenses, check the respective web sites for more information