You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/functions.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ service: myService
12
12
13
13
provider:
14
14
name: aws
15
-
runtime: nodejs14.x
15
+
runtime: nodejs18.x
16
16
runtimeManagement: auto # optional, set how Lambda controls all functions runtime. AWS default is auto; this can either be 'auto' or 'onFunctionUpdate'. For 'manual', see example in hello function below (syntax for both is identical)
17
17
memorySize: 512# optional, in MB, default is 1024
18
18
timeout: 10# optional, in seconds, default is 6
@@ -52,7 +52,7 @@ service: myService
52
52
53
53
provider:
54
54
name: aws
55
-
runtime: nodejs14.x
55
+
runtime: nodejs18.x
56
56
57
57
functions:
58
58
functionOne:
@@ -72,7 +72,7 @@ service: myService
72
72
73
73
provider:
74
74
name: aws
75
-
runtime: nodejs14.x
75
+
runtime: nodejs18.x
76
76
memorySize: 512 # will be inherited by all functions
77
77
78
78
functions:
@@ -88,7 +88,7 @@ service: myService
88
88
89
89
provider:
90
90
name: aws
91
-
runtime: nodejs14.x
91
+
runtime: nodejs18.x
92
92
93
93
functions:
94
94
functionOne:
@@ -124,7 +124,7 @@ service: myService
124
124
125
125
provider:
126
126
name: aws
127
-
runtime: nodejs14.x
127
+
runtime: nodejs18.x
128
128
iam:
129
129
role:
130
130
statements: # permissions for all of your functions can be set here
Copy file name to clipboardExpand all lines: docs/guides/serverless.yml.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ Some function settings can be defined for all functions inside the `provider` ke
101
101
# serverless.yml
102
102
103
103
provider:
104
-
runtime: nodejs14.x
104
+
runtime: nodejs18.x
105
105
runtimeManagement: auto # optional, set how Lambda controls all functions runtime. AWS default is auto; this can either be 'auto' or 'onFunctionUpdate'. For 'manual', see example in hello function below (syntax for both is identical
106
106
# Default memory size for functions (default: 1024MB)
107
107
memorySize: 512
@@ -607,7 +607,7 @@ functions:
607
607
# Container image to use. Cannot be used with 'handler'.
608
608
# Can be the URI of an image in ECR, or the name of an image defined in 'provider.ecr.images'
609
609
image: baseimage
610
-
runtime: nodejs14.x
610
+
runtime: nodejs18.x
611
611
runtimeManagement:
612
612
mode: manual # syntax required for manual, mode property also supports 'auto' or 'onFunctionUpdate' (see provider.runtimeManagement)
613
613
arn: <aws runtime arn> # required when mode is manual
0 commit comments