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

draft #209

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

draft #209

Show file tree
Hide file tree
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
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,27 @@ put on AWS S3 bucket, this package will resize/reduce it and put to S3.

From `nodejs10.x`, AWS Lambda doesn't bundle `ImageMagick` and image related libraries.

https://forums.aws.amazon.com/thread.jspa?messageID=906619&tstart=0

https://forums.aws.amazon.com/thread.jspa?messageID=906619&tstart=0

# Layers
"ap-northeast-1": "arn:aws:lambda:ap-northeast-1:251217462751:layer:aws-lambda-image-layer:8",
"ap-northeast-2": "arn:aws:lambda:ap-northeast-2:251217462751:layer:aws-lambda-image-layer:2",
"ap-south-1": "arn:aws:lambda:ap-south-1:251217462751:layer:aws-lambda-image-layer:2",
"ap-southeast-1": "arn:aws:lambda:ap-southeast-1:251217462751:layer:aws-lambda-image-layer:2",
"ap-southeast-2": "arn:aws:lambda:ap-southeast-2:251217462751:layer:aws-lambda-image-layer:1",
"ca-central-1": "arn:aws:lambda:ca-central-1:251217462751:layer:aws-lambda-image-layer:1",
"eu-north-1": "arn:aws:lambda:eu-north-1:251217462751:layer:aws-lambda-image-layer:1",
"eu-central-1": "arn:aws:lambda:eu-central-1:251217462751:layer:aws-lambda-image-layer:1",
"eu-west-1": "arn:aws:lambda:eu-west-1:251217462751:layer:aws-lambda-image-layer:1",
"eu-west-2": "arn:aws:lambda:eu-west-2:251217462751:layer:aws-lambda-image-layer:1",
"eu-west-3": "arn:aws:lambda:eu-west-3:251217462751:layer:aws-lambda-image-layer:1",
"sa-east-1": "arn:aws:lambda:sa-east-1:251217462751:layer:aws-lambda-image-layer:1",
"us-east-1": "arn:aws:lambda:us-east-1:251217462751:layer:aws-lambda-image-layer:1",
"us-east-2": "arn:aws:lambda:us-east-2:251217462751:layer:aws-lambda-image-layer:1",
"us-west-1": "arn:aws:lambda:us-west-1:251217462751:layer:aws-lambda-image-layer:1",
"us-west-2": "arn:aws:lambda:us-west-2:251217462751:layer:aws-lambda-image-layer:1"


Therefore, if you'd deploy with `nodejs10.x` runtime (but we prefer and default as it), it needs to install AWS Lambda Layer with this function.
This project can support it automatically, see [LAYERS](https://github.com/ysugimoto/aws-lambda-image/blob/master/doc/LAYERS.md) in detail.

Expand Down
Loading