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>
arn:aws:lambda:<YOUR REGION>:764866452798:layer:ghostscript-arm64:<VERSION>
Note: ARM64 provides better price-performance ratio for Lambda functions. Consider using ARM64 for new projects.
Works with the following AWS Lambda runtimes which run on Amazon Linux 2:
- nodejs20.x, nodejs18.x, nodejs16.x
- python3.12, python3.11, python3.10, python3.9, python3.8
- java21, java17, java11
- provided.al2, provided.al2023
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.
- Change version numbers in the
version.shfile (GHOSTSCRIPT_VERSION and GS_TAG) - Run
./build.shscript which will produceghostscript-x86_64.zipandghostscript-arm64.zipfiles in the root of the project - Update the version table in this README with the new layer version numbers
- Commit & Create a Pull Request
- After merging, a new layer version will be published by the CI automatically
MIT © Shelf
