This repository was archived by the owner on Feb 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -125,4 +125,4 @@ coverage
125125* -deploy-package * .zip
126126
127127# This should go only into the deploy package, not repo
128- lib /* .so
128+ lib /* .so *
Original file line number Diff line number Diff line change 55## Requirements
66
77- Using AWS CloudFront as a CDN server.
8- - Docker and node@8. 10.0 for development.
8+ - Docker and node@10.x for development.
99
1010## Setting up
1111
@@ -25,6 +25,12 @@ Or enter the command directly:
2525docker run --rm --tty --volume " $( pwd) :/var/app" mageops/aws-lambda-build:nodejs10.x nodejs-yarn edge-lambda-deploy-package
2626```
2727
28+ ** NOTE:** _ Even though lambda's runtime should be based on Amazon Linux 2 which has ` libjpeg-turbo `
29+ included by default, this library seems to be missing. The custom build hook installs appropriate
30+ so files into the ` lib/ ` subdirectory. It's possible that Lambda@Edge still uses
31+ Amazon Linux 1 as the system runtime, what is not surprising given that this specific lambda
32+ type does not support node12.x in contrast to "standard ones"._
33+
2834#### Docker image for building lambdas
2935
3036The package is built using [ mageops/aws-lambda-build] ( https://hub.docker.com/r/mageops/aws-lambda-build ) .
@@ -36,7 +42,7 @@ Go to [Lambda Management Console](https://console.aws.amazon.com/lambda/home?reg
3642
3743** Name:** ` originRequest `
3844
39- ** Runtime:** ` Node.js 12 .x `
45+ ** Runtime:** ` Node.js 10 .x `
4046
4147** Role:** ` Create new role from template(s) `
4248
You can’t perform that action at this time.
0 commit comments