Skip to content

chore: update samples without JS SDK from node 16 to 20 #2292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion alb-lambda-serverless/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ useDotenv: true

provider:
name: aws
runtime: nodejs16.x
runtime: nodejs20.x
memorySize: 256
timeout: 30
# override the default stage (dev) to be `prod`, or you can use the `--stage` CLI option
Expand Down
2 changes: 1 addition & 1 deletion apigw-api-key/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description: Serverless patterns - Amazon API Gateway REST API with API Key (uks

Globals:
Function:
Runtime: nodejs16.x
Runtime: nodejs20.x
CodeUri: src/

Resources:
Expand Down
2 changes: 1 addition & 1 deletion apigw-client-certificate/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description: Serverless patterns - Amazon API Gateway REST API with a Client Cer

Globals:
Function:
Runtime: nodejs16.x
Runtime: nodejs20.x
CodeUri: src/

Resources:
Expand Down
2 changes: 1 addition & 1 deletion apigw-http-api-eventbridge/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Resources:
Properties:
CodeUri: src/
Handler: app.lambdaHandler
Runtime: nodejs16.x
Runtime: nodejs20.x
Events:
EventBridgeTrigger:
Type: CloudWatchEvent
Expand Down
2 changes: 1 addition & 1 deletion apigw-http-api-lambda/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Description: An Amazon API Gateway HTTP API and an AWS Lambda function. (uksb-1t
Globals:
Function:
CodeUri: ./src
Runtime: nodejs16.x
Runtime: nodejs20.x
MemorySize: 128
Timeout: 15

Expand Down
2 changes: 1 addition & 1 deletion apigw-http-api-sqs-lambda-sls/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider:
name: aws

# common configuration for all Lambda functions in this stack
runtime: nodejs16.x
runtime: nodejs20.x
architecture: arm64 # use Graviton for running all Lambda functions

# use --region option value or the default - us-east-1
Expand Down
2 changes: 1 addition & 1 deletion apigw-iam/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Resources:
Properties:
CodeUri: src/
Handler: app.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
Events:
ApiEvent:
Type: Api
Expand Down
2 changes: 1 addition & 1 deletion apigw-lambda-observability/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Description: Serverless patterns - API Gateway/Lambda with observability (uksb-1
Globals:
# Default values for the Lambda function configuration
Function:
Runtime: nodejs16.x
Runtime: nodejs20.x
MemorySize: 128
Timeout: 100
Tracing: Active
Expand Down
10 changes: 5 additions & 5 deletions apigw-lambda-qldb/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Resources:
Properties:
CodeUri: src
Handler: create-person.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
Policies:
- AWSLambdaBasicExecutionRole
- Version: 2012-10-17
Expand Down Expand Up @@ -68,7 +68,7 @@ Resources:
Properties:
CodeUri: src
Handler: get-person.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
MemorySize: 512
Policies:
- AWSLambdaBasicExecutionRole
Expand All @@ -95,7 +95,7 @@ Resources:
Properties:
CodeUri: src
Handler: get-person-history.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
MemorySize: 512
Policies:
- AWSLambdaBasicExecutionRole
Expand All @@ -122,7 +122,7 @@ Resources:
Properties:
CodeUri: src
Handler: update-person.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
MemorySize: 512
Policies:
- AWSLambdaBasicExecutionRole
Expand Down Expand Up @@ -151,7 +151,7 @@ Resources:
Properties:
CodeUri: src
Handler: delete-person.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
MemorySize: 512
Policies:
- AWSLambdaBasicExecutionRole
Expand Down
2 changes: 1 addition & 1 deletion apigw-lambda-request-validator/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description: >
Globals:
Function:
CodeUri: ./src
Runtime: nodejs16.x
Runtime: nodejs20.x
MemorySize: 128
Timeout: 15

Expand Down
8 changes: 4 additions & 4 deletions apigw-lambda-sfn-transcribe-translate-polly-sam/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Resources:
Properties:
Handler: src/transcribeLaunch.handler
FunctionName: "translator-dev-transcribeLaunch"
Runtime: nodejs16.x
Runtime: nodejs20.x
Architectures:
- x86_64
MemorySize: 128
Expand All @@ -65,7 +65,7 @@ Resources:
Properties:
Handler: src/transcribeCheck.handler
FunctionName: "translator-dev-transcribeCheck"
Runtime: nodejs16.x
Runtime: nodejs20.x
Architectures:
- x86_64
MemorySize: 128
Expand All @@ -76,7 +76,7 @@ Resources:
Properties:
Handler: src/translate.handler
FunctionName: "translator-dev-translate"
Runtime: nodejs16.x
Runtime: nodejs20.x
Architectures:
- x86_64
MemorySize: 128
Expand All @@ -87,7 +87,7 @@ Resources:
Properties:
Handler: src/speech.handler
FunctionName: "translator-dev-speech"
Runtime: nodejs16.x
Runtime: nodejs20.x
Architectures:
- x86_64
MemorySize: 128
Expand Down
2 changes: 1 addition & 1 deletion apigw-lambda-sls/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider:
name: aws

# common configuration for all Lambda functions in this stack
runtime: nodejs16.x
runtime: nodejs20.x
architecture: arm64 # use Graviton for running all Lambda functions

# override the default stage (dev)
Expand Down
2 changes: 1 addition & 1 deletion apigw-method-cache/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description: Serverless patterns - Amazon API Gateway REST API with method-level

Globals:
Function:
Runtime: nodejs16.x
Runtime: nodejs20.x
CodeUri: src/

Resources:
Expand Down
2 changes: 1 addition & 1 deletion apigw-mutualtls-lambda/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description: >
Globals:
Function:
CodeUri: ./src
Runtime: nodejs16.x
Runtime: nodejs20.x
MemorySize: 128
Timeout: 15

Expand Down
2 changes: 1 addition & 1 deletion apigw-resource-policy/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Resources:
Properties:
CodeUri: src/
Handler: app.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
Events:
ApiEvent:
Type: Api
Expand Down
2 changes: 1 addition & 1 deletion apigw-rest-api-eventbridge-sqs-sam/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description: Serverless pattern API Gateway to EventBridge (uksb-1tthgi812) (tag

Globals:
Function:
Runtime: nodejs16.x
Runtime: nodejs20.x
Architectures: ["arm64"]
Timeout: 29
MemorySize: 1024
Expand Down
4 changes: 2 additions & 2 deletions apigw-rest-apigw-rest/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: app.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
CodeUri: src
Environment:
Variables:
Expand All @@ -92,7 +92,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: app.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
CodeUri: src
Environment:
Variables:
Expand Down
2 changes: 1 addition & 1 deletion apigw-sqs-lambda/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Resources:
Description: Lambda to be invoked by the SQS Queue
CodeUri: src/
Handler: app.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
Timeout: 3
MemorySize: 128
Events:
Expand Down
2 changes: 1 addition & 1 deletion apigw-websocket-api-connection-dynamodb/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Resources:
DefaultRouteFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: nodejs16.x
Runtime: nodejs20.x
Handler: index.handler
InlineCode: 'exports.handler = async (event) => {return {statusCode: 200, body: JSON.stringify(event)}}'

Expand Down
2 changes: 1 addition & 1 deletion apigw-websocket-api-lambda/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Description: An Amazon API Gateway WebSocket API and an AWS Lambda function.
Globals:
Function:
CodeUri: ./src
Runtime: nodejs16.x
Runtime: nodejs20.x
MemorySize: 128
Timeout: 15

Expand Down
2 changes: 1 addition & 1 deletion appconfig-feature-flag-sam/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Resources:
Properties:
CodeUri: src/
Handler: app.lambdaHandler
Runtime: nodejs16.x
Runtime: nodejs20.x
Architectures:
- x86_64

Expand Down
2 changes: 1 addition & 1 deletion bedrock-lambda-nodejs/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Resources:
Properties:
CodeUri: src/
Handler: index.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
MemorySize: 128
Timeout: 600
Policies:
Expand Down
2 changes: 1 addition & 1 deletion cloudwatch-logs-subscription-lambda-sam/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Globals:
Function:
Timeout: 3
MemorySize: 128
Runtime: nodejs16.x
Runtime: nodejs20.x
Architectures:
- x86_64

Expand Down
2 changes: 1 addition & 1 deletion cognito-httpapi/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Resources:
Properties:
CodeUri: src/
Handler: app.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
Events:
AppApi:
Type: HttpApi
Expand Down
2 changes: 1 addition & 1 deletion cognito-sns-sms-origination-id-sam/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Resources:
FunctionName: !Sub 'CustomSmsSender-${AWS::StackName}'
Layers:
- !Ref DependencyLayer
Runtime: nodejs16.x
Runtime: nodejs20.x
Architectures:
- x86_64
Environment:
Expand Down
6 changes: 3 additions & 3 deletions dynamodb-eventbridge/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Resources:
Type: 'AWS::Serverless::Function'
Properties:
Handler: app.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
CodeUri: publish/
Description: A Lambda function that forward changes on DynamoDB table to EventBridge bus.
MemorySize: 128
Expand All @@ -47,7 +47,7 @@ Resources:
Properties:
CodeUri: subscribe/
Handler: app.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
Description: A Lambda function that receive Insert events from the table.
MemorySize: 128
Timeout: 3
Expand All @@ -57,7 +57,7 @@ Resources:
Properties:
CodeUri: subscribe/
Handler: app.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
Description: A Lambda function that receive Deletion events from the table.
MemorySize: 128
Timeout: 3
Expand Down
2 changes: 1 addition & 1 deletion dynamodb-lambda/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Resources:
Type: 'AWS::Serverless::Function'
Properties:
Handler: app.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
CodeUri: src/
Description: An Amazon DynamoDB trigger that logs the updates made to a table.
MemorySize: 128
Expand Down
4 changes: 2 additions & 2 deletions dynamodb-streams-lambda-event-filters/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Resources:
Properties:
CodeUri: src/handlers/
Handler: dynamodb-insert-trigger.putItemTriggerHandler
Runtime: nodejs16.x
Runtime: nodejs20.x
Architectures:
- x86_64
MemorySize: 128
Expand All @@ -41,7 +41,7 @@ Resources:
Properties:
CodeUri: src/handlers/
Handler: dynamodb-delete-trigger.deleteItemTriggerHandler
Runtime: nodejs16.x
Runtime: nodejs20.x
Architectures:
- x86_64
MemorySize: 128
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Resources:
Handler: app.handler
MemorySize: 128
Timeout: 3
Runtime: nodejs16.x
Runtime: nodejs20.x

EventRule:
Type: AWS::Events::Rule
Expand Down
2 changes: 1 addition & 1 deletion eventbridge-cross-region/eventbus-source/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Resources:
Handler: app.handler
MemorySize: 128
Timeout: 3
Runtime: nodejs16.x
Runtime: nodejs20.x
Environment:
Variables:
EVENTSOURCE: !Ref EventSource
Expand Down
2 changes: 1 addition & 1 deletion eventbridge-lambda-sls/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider:
name: aws

# common configuration for all Lambda functions in this stack
runtime: nodejs16.x
runtime: nodejs20.x
architecture: arm64 # use Graviton for running all Lambda functions

# use --region option value or the default - us-east-1
Expand Down
2 changes: 1 addition & 1 deletion eventbridge-lambda/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Resources:
Properties:
CodeUri: src/
Handler: app.handler
Runtime: nodejs16.x
Runtime: nodejs20.x
Timeout: 3
Events:
Trigger:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ custom:

provider:
name: aws
runtime: nodejs16.x
runtime: nodejs20.x
memorySize: 256
timeout: 30
# override the default stage (dev) to be `prod`, or you can use the `--stage` CLI option
Expand Down
Loading