Skip to content
This repository was archived by the owner on Oct 31, 2018. It is now read-only.

Commit 44563e5

Browse files
jorritjpignata
authored andcommitted
Use Node.js 6.10 runtime
1 parent 476aaa4 commit 44563e5

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WORKDIR /tmp
66

77
RUN yum -y install gcc-c++ && \
88
rpm --import /etc/nodesource.gpg.key && \
9-
curl --location --output ns.rpm https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodejs-4.3.2-1nodesource.el7.centos.x86_64.rpm && \
9+
curl --location --output ns.rpm https://rpm.nodesource.com/pub_6.x/el/7/x86_64/nodejs-6.10.1-1nodesource.el7.centos.x86_64.rpm && \
1010
rpm --checksig ns.rpm && \
1111
rpm --install --force ns.rpm && \
1212
npm install -g npm@latest && \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Resizes images on the fly using Amazon S3, AWS Lambda, and Amazon API Gateway. U
3030

3131
You can find the BucketWebsiteUrl in the table of outputs displayed on a successful invocation of the deploy script.
3232

33-
**Note:** If you create the Lambda function yourself, make sure to select Node.js version 4.3.
33+
**Note:** If you create the Lambda function yourself, make sure to select Node.js version 6.10.
3434

3535
## License
3636

dist/function.zip

-1.25 MB
Binary file not shown.

image-resize.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Resources:
3232
Properties:
3333
CodeUri: ./dist/function.zip
3434
Handler: index.handler
35-
Runtime: nodejs4.3
35+
Runtime: nodejs6.10
3636
MemorySize: 1536
3737
Timeout: 60
3838
Environment:

lambda/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"license": "Apache-2.0",
88
"main": "index.js",
99
"dependencies": {
10-
"sharp": "^0.16.0"
10+
"sharp": "^0.17.3"
1111
},
1212
"devDependencies": {
13-
"aws-sdk": "^2.6.9"
13+
"aws-sdk": "^2.36.0"
1414
}
1515
}

0 commit comments

Comments
 (0)