This ghostscript layer is intended for the aws lambda 2 environment. It should be deployed as a custom layer.
Both x86_x64 and arm64 architecture is supported.
The following command will initiate the build process. You should end up with a ghostscript.zip file after the build process.
./build.shCurrently, the build process builds for x86_x64 only. If you want to change this and build for another platform such as arm64 you can change the --plaform attribute in the .build.sh file.
- Go to the aws console -> lambda -> layers
- Select the layer that you wish to deploy the new version to
- Click on "create version"
- Upload the zip file
- Add/update your lambda function with the newly deployed layer
You can find the gs binary in /opt/bin/gs (Lambda unpacks layers to /opt).
Run /opt/bin/gs --version to check the deployed version.