Skip to content

Commit 996c7ab

Browse files
authored
Merge pull request #2292 from trivikr/lambda-runtime-node20
chore: update samples without JS SDK from node 16 to 20
2 parents 11ab665 + 4ca0554 commit 996c7ab

File tree

79 files changed

+94
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+94
-94
lines changed

alb-lambda-serverless/serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ useDotenv: true
44

55
provider:
66
name: aws
7-
runtime: nodejs16.x
7+
runtime: nodejs20.x
88
memorySize: 256
99
timeout: 30
1010
# override the default stage (dev) to be `prod`, or you can use the `--stage` CLI option

apigw-api-key/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Description: Serverless patterns - Amazon API Gateway REST API with API Key (uks
44

55
Globals:
66
Function:
7-
Runtime: nodejs16.x
7+
Runtime: nodejs20.x
88
CodeUri: src/
99

1010
Resources:

apigw-client-certificate/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Description: Serverless patterns - Amazon API Gateway REST API with a Client Cer
44

55
Globals:
66
Function:
7-
Runtime: nodejs16.x
7+
Runtime: nodejs20.x
88
CodeUri: src/
99

1010
Resources:

apigw-http-api-eventbridge/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Resources:
4242
Properties:
4343
CodeUri: src/
4444
Handler: app.lambdaHandler
45-
Runtime: nodejs16.x
45+
Runtime: nodejs20.x
4646
Events:
4747
EventBridgeTrigger:
4848
Type: CloudWatchEvent

apigw-http-api-lambda/template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Description: An Amazon API Gateway HTTP API and an AWS Lambda function. (uksb-1t
66
Globals:
77
Function:
88
CodeUri: ./src
9-
Runtime: nodejs16.x
9+
Runtime: nodejs20.x
1010
MemorySize: 128
1111
Timeout: 15
1212

apigw-http-api-sqs-lambda-sls/serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ provider:
88
name: aws
99

1010
# common configuration for all Lambda functions in this stack
11-
runtime: nodejs16.x
11+
runtime: nodejs20.x
1212
architecture: arm64 # use Graviton for running all Lambda functions
1313

1414
# use --region option value or the default - us-east-1

apigw-iam/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Resources:
4848
Properties:
4949
CodeUri: src/
5050
Handler: app.handler
51-
Runtime: nodejs16.x
51+
Runtime: nodejs20.x
5252
Events:
5353
ApiEvent:
5454
Type: Api

apigw-lambda-observability/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Description: Serverless patterns - API Gateway/Lambda with observability (uksb-1
66
Globals:
77
# Default values for the Lambda function configuration
88
Function:
9-
Runtime: nodejs16.x
9+
Runtime: nodejs20.x
1010
MemorySize: 128
1111
Timeout: 100
1212
Tracing: Active

apigw-lambda-qldb/template.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Resources:
4040
Properties:
4141
CodeUri: src
4242
Handler: create-person.handler
43-
Runtime: nodejs16.x
43+
Runtime: nodejs20.x
4444
Policies:
4545
- AWSLambdaBasicExecutionRole
4646
- Version: 2012-10-17
@@ -68,7 +68,7 @@ Resources:
6868
Properties:
6969
CodeUri: src
7070
Handler: get-person.handler
71-
Runtime: nodejs16.x
71+
Runtime: nodejs20.x
7272
MemorySize: 512
7373
Policies:
7474
- AWSLambdaBasicExecutionRole
@@ -95,7 +95,7 @@ Resources:
9595
Properties:
9696
CodeUri: src
9797
Handler: get-person-history.handler
98-
Runtime: nodejs16.x
98+
Runtime: nodejs20.x
9999
MemorySize: 512
100100
Policies:
101101
- AWSLambdaBasicExecutionRole
@@ -122,7 +122,7 @@ Resources:
122122
Properties:
123123
CodeUri: src
124124
Handler: update-person.handler
125-
Runtime: nodejs16.x
125+
Runtime: nodejs20.x
126126
MemorySize: 512
127127
Policies:
128128
- AWSLambdaBasicExecutionRole
@@ -151,7 +151,7 @@ Resources:
151151
Properties:
152152
CodeUri: src
153153
Handler: delete-person.handler
154-
Runtime: nodejs16.x
154+
Runtime: nodejs20.x
155155
MemorySize: 512
156156
Policies:
157157
- AWSLambdaBasicExecutionRole

apigw-lambda-request-validator/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Description: >
77
Globals:
88
Function:
99
CodeUri: ./src
10-
Runtime: nodejs16.x
10+
Runtime: nodejs20.x
1111
MemorySize: 128
1212
Timeout: 15
1313

0 commit comments

Comments
 (0)