Run DEPLOYMENT_BUCKET=your_bucket make deploy to deploy the layer. The packaged ghostscript version is 9.26.
Inside the lambda container, you can find the binary in /opt/bin/gs. Set the GS_LIB environment variable to /opt/share/ghostscript/lib.