Skip to content

Commit 03ed582

Browse files
committed
Node 15.0.1, aws-sdk 2.778.0
1 parent 23b5bcc commit 03ed582

7 files changed

Lines changed: 31 additions & 31 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM node:14.11.0-buster-slim@sha256:c253a1a9569e95414f30c6094bdb7f7561c17ad93447d2747405e367066a841a
1+
FROM node:15.0.1-buster-slim@sha256:fc14218ae526b3568ba854732e8fbfe7e67d77769f5c3b17db997983fa571421
22

33
RUN apt-get update && apt-get install -y p7zip-full curl xz-utils && apt-get clean all

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# AWS Lambda NodeJS-14 Runtime
1+
# AWS Lambda NodeJS-15 Runtime
22

33
AWS Lambda runtime API implemented in Node.js. The supported version is usually the latest LTS.
44

55
It's easy to use this project and build Node.js runtime that will target any version - just replace the version number in `auto/package` with your preferred one.
66

77
## Current versions
88

9-
* Node.js - **14.13.0**
10-
* aws-sdk - **2.766.0**
9+
* Node.js - **15.0.1**
10+
* aws-sdk - **2.778.0**
1111

1212
## Goals
1313

@@ -39,8 +39,8 @@ Deploy the runtime layer using the following command:
3939

4040
```bash
4141
aws lambda publish-layer-version \
42-
--layer-name node-14-runtime \
43-
--description "nodejs-14.13.0 aws-cli-2.766.0" \
42+
--layer-name node-15-runtime \
43+
--description "nodejs-15.0.1 aws-cli-2.778.0" \
4444
--compatible-runtimes provided \
4545
--license-info Apache-2.0 \
4646
--zip-file fileb://stage/layer.zip
@@ -49,14 +49,14 @@ aws lambda publish-layer-version \
4949
The output will look like this:
5050
```json
5151
{
52-
"LayerVersionArn": "arn:aws:lambda:us-east-2:356111732087:layer:node-14-runtime:1",
53-
"Description": "nodejs-14.13.0 aws-cli-2.766.0",
52+
"LayerVersionArn": "arn:aws:lambda:us-east-2:356111732087:layer:node-15-runtime:1",
53+
"Description": "nodejs-15.0.1 aws-cli-2.778.0",
5454
"CreatedDate": "2018-12-02T22:32:00.572+0000",
55-
"LayerArn": "arn:aws:lambda:us-east-2:356111732087:layer:node-14-runtime",
55+
"LayerArn": "arn:aws:lambda:us-east-2:356111732087:layer:node-15-runtime",
5656
"Content": {
5757
"CodeSize": 18104889,
5858
"CodeSha256": "VonrpX23FWJOmE4lvhpox+9PS9kuY4sng0o0wxNTROs=",
59-
"Location": "https://awslambda-us-east-2-layers.s3.us-east-2.amazonaws.com/snapshots/356111732087/node-14-runtime-f3415c38-d865-46b6-ae42-009985092116?......"
59+
"Location": "https://awslambda-us-east-2-layers.s3.us-east-2.amazonaws.com/snapshots/356111732087/node-15-runtime-f3415c38-d865-46b6-ae42-009985092116?......"
6060
},
6161
"Version": 1,
6262
"CompatibleRuntimes": [
@@ -72,7 +72,7 @@ You can share the layer with other AWS accounts by executing the following comma
7272

7373
```bash
7474
aws lambda add-layer-version-permission \
75-
--layer-name node-14-runtime \
75+
--layer-name node-15-runtime \
7676
--version-number 1 \
7777
--principal "*" \
7878
--statement-id publish \
@@ -84,7 +84,7 @@ Response:
8484
```json
8585
{
8686
"RevisionId": "8b5b2e27-5013-4983-ac1a-9008dff90bac",
87-
"Statement": "{\"Sid\":\"publish\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"lambda:GetLayerVersion\",\"Resource\":\"arn:aws:lambda:us-east-2:356111732087:layer:node-14-runtime:1\"}"
87+
"Statement": "{\"Sid\":\"publish\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"lambda:GetLayerVersion\",\"Resource\":\"arn:aws:lambda:us-east-2:356111732087:layer:node-15-runtime:1\"}"
8888
}
8989
```
9090

@@ -103,11 +103,11 @@ Let's assume that your lambda function is packaged as `lambda.zip` file and the
103103
```bash
104104
aws lambda create-function \
105105
--region us-east-2 \
106-
--function-name node-14-runtime-example \
106+
--function-name node-15-runtime-example \
107107
--zip-file fileb://lambda.zip \
108108
--handler hello.handler \
109109
--runtime provided \
110-
--layers "arn:aws:lambda:us-east-2:356111732087:layer:node-14-runtime:2" \
110+
--layers "arn:aws:lambda:us-east-2:356111732087:layer:node-15-runtime:2" \
111111
--role arn:aws:iam::356111732087:role/lambda-role
112112
out.txt
113113
```
@@ -119,10 +119,10 @@ Let's assume that your lambda function is packaged as `lambda.zip` file and the
119119
"Layers": [
120120
{
121121
"CodeSize": 18104889,
122-
"Arn": "arn:aws:lambda:us-east-2:356111732087:layer:node-14-runtime:1"
122+
"Arn": "arn:aws:lambda:us-east-2:356111732087:layer:node-15-runtime:1"
123123
}
124124
],
125-
"FunctionName": "node-14-runtime-example",
125+
"FunctionName": "node-15-runtime-example",
126126
"LastModified": "2018-12-02T22:59:10.408+0000",
127127
"RevisionId": "32e7e8a1-b5ba-4388-b6be-596278e36126",
128128
"MemorySize": 128,
@@ -136,7 +136,7 @@ Let's assume that your lambda function is packaged as `lambda.zip` file and the
136136
"CodeSha256": "shSeSmJZHv8Z0WmOAcFcHeSUGbRYRR1cFdbEudkSJHo=",
137137
"Description": "",
138138
"CodeSize": 340,
139-
"FunctionArn": "arn:aws:lambda:us-east-2:356111732087:function:node-14-runtime-example",
139+
"FunctionArn": "arn:aws:lambda:us-east-2:356111732087:function:node-15-runtime-example",
140140
"Handler": "hello.handler"
141141
}
142142
```
@@ -146,7 +146,7 @@ Let's assume that your lambda function is packaged as `lambda.zip` file and the
146146
```bash
147147
aws lambda invoke \
148148
--region us-east-2 \
149-
--function-name node-14-runtime-example \
149+
--function-name node-15-runtime-example \
150150
--payload '{"hello":"world"}' \
151151
output.txt
152152

auto/package

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -ex
44

5-
export NODE_VERSION=14.13.0
6-
export SHA256=8dbf2869033b315de8369405bc3cd5a19fb11afc824fe616640e2743a9a84cc4
5+
export NODE_VERSION=15.0.1
6+
export SHA256=cc9c3eed21755b490e5333ccab208ce15b539c35f64a764eeeae77c58746a7ff
77

88
DIR="$( cd "$( dirname "$0" )" && pwd )"
99

auto/package-cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tar -xJ -f "${tmp_dir}/${node_archive}" --strip 1 -C "${node_dir}"
2727
#prepare staging dir
2828
rm -rf "${stage_dir}"
2929
mkdir -p "${stage_dir}"
30-
cp -a tsconfig.json package.json package-lock.json src/bootstrap src/ "${node_dir}"/bin/node "${stage_dir}/"
30+
cp -a tsconfig.json package.json package-lock.json src/bootstrap src/ "${node_dir}"/bin/node "${stage_dir}"
3131

3232
#compile typescript
3333
cd "${stage_dir}"

auto/publish

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ us-west-2
3131
"
3232

3333
TMP="deployment-$(date +%s).txt"
34-
LAYER_NAME=node-14-runtime
34+
LAYER_NAME=node-15-runtime
3535
for R in $REGIONS ; do
3636
echo "Deploying in ${R}"
3737
docker run -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY --rm \
@@ -41,7 +41,7 @@ for R in $REGIONS ; do
4141
lambda publish-layer-version \
4242
--region "${R}" \
4343
--layer-name "${LAYER_NAME}" \
44-
--description "nodejs-14.13.0 aws-cli-2.766.0" \
44+
--description "nodejs-15.0.1 aws-cli-2.766.0" \
4545
--compatible-runtimes provided \
4646
--license-info Apache-2.0 \
4747
--zip-file fileb://stage/layer.zip

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"devDependencies": {
1313
"body-parser": "^1.19.0",
1414
"express": "^4.17.1",
15-
"@types/node": "^14.11.2",
15+
"@types/node": "^14.14.2",
1616
"@types/express": "^4.17.8",
1717
"ts-node": "^9.0.0",
1818
"typescript": "^4.0.3"
1919
},
2020
"dependencies": {
21-
"aws-sdk": "^2.766.0"
21+
"aws-sdk": "^2.778.0"
2222
}
2323
}

0 commit comments

Comments
 (0)