Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: lambda installation example arns #200

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions docs/gm-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,19 @@ For windows users.. open the links and download installers.
- Download GraphicsMagick for Windows: https://sourceforge.net/projects/graphicsmagick/files/graphicsmagick-binaries/

Add the executable directories to the PATH environment variable for Ghostscript and GraphicsMagick:
- C:\Program Files\gs\gs****\bin
- C:\Program Files\GraphicsMagick-****
- `C:\Program Files\gs\gs****\bin`
- `C:\Program Files\GraphicsMagick-****`

[^1]: An error occurred when the Ghostscript version was 9.53 or later.

## AWS Lambda

For lambda you can add the required libraries using [layers](https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html). There are prebuilt, community driven layers for both [GraphicsMagic](https://github.com/rpidanny/gm-lambda-layer) and [Ghostscript](https://github.com/shelfio/ghostscript-lambda-layer).
For lambda you can add the required libraries using [lambda layers](https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html). There are prebuilt, community driven layers for both [GraphicsMagic](https://github.com/rpidanny/gm-lambda-layer) and [Ghostscript](https://github.com/shelfio/ghostscript-lambda-layer).

Example ARNs are:
```
arn:aws:lambda:us-east-1:175033217214:layer:graphicsmagick:2
arn:aws:lambda:us-east-1:764866452798:layer:ghostscript:15
```

You can also build and publish your own layers. A guide how to publish `GraphicsMagick` layer can be found [here](https://github.com/mskec/gm-lambda-layer).
Loading