Skip to content

Commit 7d00d7b

Browse files
authored
Bump Lambda nodejs runtime to 18 (#2545)
1 parent e5973bd commit 7d00d7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/serverless-raw/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ let lambda = new aws.lambda.Function("mylambda", {
4141
}),
4242
role: role.arn,
4343
handler: "index.handler",
44-
runtime: aws.lambda.NodeJS12dXRuntime,
44+
runtime: aws.lambda.Runtime.NodeJS18dX,
4545
}, providerOpts);
4646

4747
///////////////////
@@ -59,7 +59,7 @@ let logcollector = new aws.lambda.Function("mylambda-logcollector", {
5959
}),
6060
role: role.arn,
6161
handler: "index.handler",
62-
runtime: aws.lambda.NodeJS12dXRuntime,
62+
runtime: aws.lambda.Runtime.NodeJS18dX,
6363
}, providerOpts);
6464

6565
let permission = new aws.lambda.Permission("logcollector-permission", {

0 commit comments

Comments
 (0)