Home

Awesome

Ghostscript for AWS Lambda as a Layer

Getting Started

Click on Layers and choose "Add a layer", and "Provide a layer version ARN" and enter the following ARN.

arn:aws:lambda:<YOUR REGION>:764866452798:layer:ghostscript:<VERSION>

Works with the following AWS Lambda runtimes which run on Amazon Linux 2:

Version Numbers

GhostscriptVERSIONeu-west-3
v10.04.01718
v10.02.01516
v10.0.01314
v9.56.11213
v9.55.0910
v9.52.089
v9.50.067
v9.20.011

Where can I find the Ghostscript binary inside of Lambda after I attach the layer?

You can find it at /opt/bin/gs (/opt is where Lambda unpacks layers).

You can run /opt/bin/gs --version to make sure Ghostscript is up and running.

Update

  1. Change version number & git tag in the Dockerfile
  2. Run ./build.sh script which will produce ghostscript.zip file
  3. Change version number in the publish.sh
  4. Commit & Create a Pull Request
  5. After merging, a new layer version will be published by the CI automatically

License

MIT © Shelf