1- # AWS Lambda NodeJS-14 Runtime
1+ # AWS Lambda NodeJS-15 Runtime
22
33AWS Lambda runtime API implemented in Node.js. The supported version is usually the latest LTS.
44
55It'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
4141aws 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 \
4949The 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
7474aws 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
0 commit comments