diff --git a/alb-lambda-serverless/serverless.yml b/alb-lambda-serverless/serverless.yml index d0d263766..3d23b201e 100644 --- a/alb-lambda-serverless/serverless.yml +++ b/alb-lambda-serverless/serverless.yml @@ -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 diff --git a/apigw-api-key/template.yaml b/apigw-api-key/template.yaml index 670e3b820..58491ced7 100644 --- a/apigw-api-key/template.yaml +++ b/apigw-api-key/template.yaml @@ -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: diff --git a/apigw-client-certificate/template.yaml b/apigw-client-certificate/template.yaml index c8be224d8..f3f202244 100644 --- a/apigw-client-certificate/template.yaml +++ b/apigw-client-certificate/template.yaml @@ -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: diff --git a/apigw-http-api-eventbridge/template.yaml b/apigw-http-api-eventbridge/template.yaml index af3498c2b..56046bd59 100644 --- a/apigw-http-api-eventbridge/template.yaml +++ b/apigw-http-api-eventbridge/template.yaml @@ -42,7 +42,7 @@ Resources: Properties: CodeUri: src/ Handler: app.lambdaHandler - Runtime: nodejs16.x + Runtime: nodejs20.x Events: EventBridgeTrigger: Type: CloudWatchEvent diff --git a/apigw-http-api-lambda/template.yml b/apigw-http-api-lambda/template.yml index cd2d29485..d3c216487 100644 --- a/apigw-http-api-lambda/template.yml +++ b/apigw-http-api-lambda/template.yml @@ -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 diff --git a/apigw-http-api-sqs-lambda-sls/serverless.yml b/apigw-http-api-sqs-lambda-sls/serverless.yml index a86e4cf69..d15f28c2d 100644 --- a/apigw-http-api-sqs-lambda-sls/serverless.yml +++ b/apigw-http-api-sqs-lambda-sls/serverless.yml @@ -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 diff --git a/apigw-iam/template.yaml b/apigw-iam/template.yaml index 80e83e3dc..b2a940aee 100644 --- a/apigw-iam/template.yaml +++ b/apigw-iam/template.yaml @@ -48,7 +48,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Events: ApiEvent: Type: Api diff --git a/apigw-lambda-observability/template.yaml b/apigw-lambda-observability/template.yaml index 7fa97ffbf..8c940478c 100644 --- a/apigw-lambda-observability/template.yaml +++ b/apigw-lambda-observability/template.yaml @@ -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 diff --git a/apigw-lambda-qldb/template.yaml b/apigw-lambda-qldb/template.yaml index b0e1ab02d..d8c6a209b 100644 --- a/apigw-lambda-qldb/template.yaml +++ b/apigw-lambda-qldb/template.yaml @@ -40,7 +40,7 @@ Resources: Properties: CodeUri: src Handler: create-person.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Policies: - AWSLambdaBasicExecutionRole - Version: 2012-10-17 @@ -68,7 +68,7 @@ Resources: Properties: CodeUri: src Handler: get-person.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 512 Policies: - AWSLambdaBasicExecutionRole @@ -95,7 +95,7 @@ Resources: Properties: CodeUri: src Handler: get-person-history.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 512 Policies: - AWSLambdaBasicExecutionRole @@ -122,7 +122,7 @@ Resources: Properties: CodeUri: src Handler: update-person.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 512 Policies: - AWSLambdaBasicExecutionRole @@ -151,7 +151,7 @@ Resources: Properties: CodeUri: src Handler: delete-person.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 512 Policies: - AWSLambdaBasicExecutionRole diff --git a/apigw-lambda-request-validator/template.yaml b/apigw-lambda-request-validator/template.yaml index a4b959462..3b2e21ed7 100644 --- a/apigw-lambda-request-validator/template.yaml +++ b/apigw-lambda-request-validator/template.yaml @@ -7,7 +7,7 @@ Description: > Globals: Function: CodeUri: ./src - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 128 Timeout: 15 diff --git a/apigw-lambda-sfn-transcribe-translate-polly-sam/template.yaml b/apigw-lambda-sfn-transcribe-translate-polly-sam/template.yaml index d901fb98a..715a4033e 100644 --- a/apigw-lambda-sfn-transcribe-translate-polly-sam/template.yaml +++ b/apigw-lambda-sfn-transcribe-translate-polly-sam/template.yaml @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/apigw-lambda-sls/serverless.yml b/apigw-lambda-sls/serverless.yml index ff6d973db..66ae4e174 100644 --- a/apigw-lambda-sls/serverless.yml +++ b/apigw-lambda-sls/serverless.yml @@ -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) diff --git a/apigw-method-cache/template.yaml b/apigw-method-cache/template.yaml index 83d95bf4d..297f8bc84 100644 --- a/apigw-method-cache/template.yaml +++ b/apigw-method-cache/template.yaml @@ -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: diff --git a/apigw-mutualtls-lambda/template.yaml b/apigw-mutualtls-lambda/template.yaml index c367acd5f..5ad2c1d44 100644 --- a/apigw-mutualtls-lambda/template.yaml +++ b/apigw-mutualtls-lambda/template.yaml @@ -7,7 +7,7 @@ Description: > Globals: Function: CodeUri: ./src - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 128 Timeout: 15 diff --git a/apigw-resource-policy/template.yaml b/apigw-resource-policy/template.yaml index 2eee7523a..4172b9dd1 100644 --- a/apigw-resource-policy/template.yaml +++ b/apigw-resource-policy/template.yaml @@ -30,7 +30,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Events: ApiEvent: Type: Api diff --git a/apigw-rest-api-eventbridge-sqs-sam/template.yml b/apigw-rest-api-eventbridge-sqs-sam/template.yml index f45c0770e..95d183d9e 100755 --- a/apigw-rest-api-eventbridge-sqs-sam/template.yml +++ b/apigw-rest-api-eventbridge-sqs-sam/template.yml @@ -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 diff --git a/apigw-rest-apigw-rest/template.yaml b/apigw-rest-apigw-rest/template.yaml index ab1dd5fe2..ba85a1df6 100644 --- a/apigw-rest-apigw-rest/template.yaml +++ b/apigw-rest-apigw-rest/template.yaml @@ -74,7 +74,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x CodeUri: src Environment: Variables: @@ -92,7 +92,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x CodeUri: src Environment: Variables: diff --git a/apigw-sqs-lambda/template.yaml b/apigw-sqs-lambda/template.yaml index 24691d38f..1144a25f2 100644 --- a/apigw-sqs-lambda/template.yaml +++ b/apigw-sqs-lambda/template.yaml @@ -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: diff --git a/apigw-websocket-api-connection-dynamodb/template.yaml b/apigw-websocket-api-connection-dynamodb/template.yaml index e5ef47463..fc3ded857 100644 --- a/apigw-websocket-api-connection-dynamodb/template.yaml +++ b/apigw-websocket-api-connection-dynamodb/template.yaml @@ -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)}}' diff --git a/apigw-websocket-api-lambda/template.yml b/apigw-websocket-api-lambda/template.yml index b263a31f7..bdfc40929 100644 --- a/apigw-websocket-api-lambda/template.yml +++ b/apigw-websocket-api-lambda/template.yml @@ -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 diff --git a/appconfig-feature-flag-sam/template.yaml b/appconfig-feature-flag-sam/template.yaml index d50c22417..7753f51c0 100644 --- a/appconfig-feature-flag-sam/template.yaml +++ b/appconfig-feature-flag-sam/template.yaml @@ -128,7 +128,7 @@ Resources: Properties: CodeUri: src/ Handler: app.lambdaHandler - Runtime: nodejs16.x + Runtime: nodejs20.x Architectures: - x86_64 diff --git a/bedrock-lambda-nodejs/template.yml b/bedrock-lambda-nodejs/template.yml index 423e1d5b3..9a631523b 100644 --- a/bedrock-lambda-nodejs/template.yml +++ b/bedrock-lambda-nodejs/template.yml @@ -8,7 +8,7 @@ Resources: Properties: CodeUri: src/ Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 128 Timeout: 600 Policies: diff --git a/cloudwatch-logs-subscription-lambda-sam/template.yaml b/cloudwatch-logs-subscription-lambda-sam/template.yaml index 01eea3fbb..fcedadd5a 100644 --- a/cloudwatch-logs-subscription-lambda-sam/template.yaml +++ b/cloudwatch-logs-subscription-lambda-sam/template.yaml @@ -8,7 +8,7 @@ Globals: Function: Timeout: 3 MemorySize: 128 - Runtime: nodejs16.x + Runtime: nodejs20.x Architectures: - x86_64 diff --git a/cognito-httpapi/template.yaml b/cognito-httpapi/template.yaml index d422daa94..76b35ec08 100644 --- a/cognito-httpapi/template.yaml +++ b/cognito-httpapi/template.yaml @@ -55,7 +55,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Events: AppApi: Type: HttpApi diff --git a/cognito-sns-sms-origination-id-sam/template.yaml b/cognito-sns-sms-origination-id-sam/template.yaml index 6e9e34b6d..cb5bd943a 100644 --- a/cognito-sns-sms-origination-id-sam/template.yaml +++ b/cognito-sns-sms-origination-id-sam/template.yaml @@ -141,7 +141,7 @@ Resources: FunctionName: !Sub 'CustomSmsSender-${AWS::StackName}' Layers: - !Ref DependencyLayer - Runtime: nodejs16.x + Runtime: nodejs20.x Architectures: - x86_64 Environment: diff --git a/dynamodb-eventbridge/template.yaml b/dynamodb-eventbridge/template.yaml index 11870398f..db7a1be0b 100644 --- a/dynamodb-eventbridge/template.yaml +++ b/dynamodb-eventbridge/template.yaml @@ -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 @@ -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 @@ -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 diff --git a/dynamodb-lambda/template.yaml b/dynamodb-lambda/template.yaml index 78a296cfa..9ebcdca47 100644 --- a/dynamodb-lambda/template.yaml +++ b/dynamodb-lambda/template.yaml @@ -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 diff --git a/dynamodb-streams-lambda-event-filters/template.yaml b/dynamodb-streams-lambda-event-filters/template.yaml index 64c391d10..8f37cbdea 100644 --- a/dynamodb-streams-lambda-event-filters/template.yaml +++ b/dynamodb-streams-lambda-event-filters/template.yaml @@ -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 @@ -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 diff --git a/eventbridge-cross-region/eventbus-destination/template.yaml b/eventbridge-cross-region/eventbus-destination/template.yaml index db0e30e39..c727d6fd8 100644 --- a/eventbridge-cross-region/eventbus-destination/template.yaml +++ b/eventbridge-cross-region/eventbus-destination/template.yaml @@ -21,7 +21,7 @@ Resources: Handler: app.handler MemorySize: 128 Timeout: 3 - Runtime: nodejs16.x + Runtime: nodejs20.x EventRule: Type: AWS::Events::Rule diff --git a/eventbridge-cross-region/eventbus-source/template.yaml b/eventbridge-cross-region/eventbus-source/template.yaml index d2e71bee1..ac0ab9853 100644 --- a/eventbridge-cross-region/eventbus-source/template.yaml +++ b/eventbridge-cross-region/eventbus-source/template.yaml @@ -106,7 +106,7 @@ Resources: Handler: app.handler MemorySize: 128 Timeout: 3 - Runtime: nodejs16.x + Runtime: nodejs20.x Environment: Variables: EVENTSOURCE: !Ref EventSource diff --git a/eventbridge-lambda-sls/serverless.yml b/eventbridge-lambda-sls/serverless.yml index 5f676be15..ac82369cf 100644 --- a/eventbridge-lambda-sls/serverless.yml +++ b/eventbridge-lambda-sls/serverless.yml @@ -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 diff --git a/eventbridge-lambda/template.yaml b/eventbridge-lambda/template.yaml index 25d6d1ba7..7465cf186 100644 --- a/eventbridge-lambda/template.yaml +++ b/eventbridge-lambda/template.yaml @@ -10,7 +10,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 Events: Trigger: diff --git a/eventbridge-pipes-dynamodbstream-to-sqs-serverless/serverless.yml b/eventbridge-pipes-dynamodbstream-to-sqs-serverless/serverless.yml index 63446b163..f260cb78f 100644 --- a/eventbridge-pipes-dynamodbstream-to-sqs-serverless/serverless.yml +++ b/eventbridge-pipes-dynamodbstream-to-sqs-serverless/serverless.yml @@ -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 diff --git a/eventbridge-pipes-msk-iam-auth-to-lambda/pipes.yaml b/eventbridge-pipes-msk-iam-auth-to-lambda/pipes.yaml index 5ad2617c1..681b68c9a 100644 --- a/eventbridge-pipes-msk-iam-auth-to-lambda/pipes.yaml +++ b/eventbridge-pipes-msk-iam-auth-to-lambda/pipes.yaml @@ -107,7 +107,7 @@ Resources: } } Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Policies: - AWSLambdaBasicExecutionRole diff --git a/eventbridge-pipes-msk-to-lambda/pipes.yaml b/eventbridge-pipes-msk-to-lambda/pipes.yaml index a6ae50e70..7159215c8 100644 --- a/eventbridge-pipes-msk-to-lambda/pipes.yaml +++ b/eventbridge-pipes-msk-to-lambda/pipes.yaml @@ -97,7 +97,7 @@ Resources: } } Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Policies: - AWSLambdaBasicExecutionRole diff --git a/eventbridge-pipes-sqs-to-lambda-with-stepfunction-enrichment/template.yaml b/eventbridge-pipes-sqs-to-lambda-with-stepfunction-enrichment/template.yaml index f5138e0b4..8581467fa 100644 --- a/eventbridge-pipes-sqs-to-lambda-with-stepfunction-enrichment/template.yaml +++ b/eventbridge-pipes-sqs-to-lambda-with-stepfunction-enrichment/template.yaml @@ -22,7 +22,7 @@ Resources: FunctionName: !Sub ${AWS::StackName}-target-lambda CodeUri: src/ Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 128 Timeout: 15 Architectures: diff --git a/eventbridge-schedule-to-lambda/template.yaml b/eventbridge-schedule-to-lambda/template.yaml index 6eaa42806..6fd27ac48 100644 --- a/eventbridge-schedule-to-lambda/template.yaml +++ b/eventbridge-schedule-to-lambda/template.yaml @@ -15,7 +15,7 @@ Resources: Properties: CodeUri: functions/ Handler: app.lambdaHandler - Runtime: nodejs16.x + Runtime: nodejs20.x Architectures: - x86_64 Metadata: # Manage esbuild properties diff --git a/firehose-transformation-sam/template.yaml b/firehose-transformation-sam/template.yaml index fc21bdfff..8d1092f6c 100644 --- a/firehose-transformation-sam/template.yaml +++ b/firehose-transformation-sam/template.yaml @@ -16,7 +16,7 @@ Resources: Properties: FunctionName: TransformationFunction Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs20.x CodeUri: src/ Timeout: 90 diff --git a/iot-lambda/template.yaml b/iot-lambda/template.yaml index 7a056d394..dc6227869 100644 --- a/iot-lambda/template.yaml +++ b/iot-lambda/template.yaml @@ -8,7 +8,7 @@ Resources: Type: 'AWS::Serverless::Function' Properties: Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x CodeUri: src/ Description: A Lambda function that logs the IoT events sent to a IoT Thing topic. MemorySize: 128 diff --git a/iot-mqttoverhttp-customauth/template.yaml b/iot-mqttoverhttp-customauth/template.yaml index e3b72d086..d96ea9277 100644 --- a/iot-mqttoverhttp-customauth/template.yaml +++ b/iot-mqttoverhttp-customauth/template.yaml @@ -26,7 +26,7 @@ Resources: Properties: FunctionName: iot-events-processor Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 29 CodeUri: src/ Events: @@ -81,7 +81,7 @@ Resources: Properties: FunctionName: iot-publish-authorizer Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Environment: Variables: AWS_ACCOUNTID: !Ref AWS::AccountId diff --git a/kinesis-lambda-efo/template.yaml b/kinesis-lambda-efo/template.yaml index ad3cc2be1..986bac2b1 100644 --- a/kinesis-lambda-efo/template.yaml +++ b/kinesis-lambda-efo/template.yaml @@ -21,7 +21,7 @@ Resources: Type: AWS::Serverless::Function Properties: CodeUri: src/ - Runtime: nodejs16.x + Runtime: nodejs20.x Handler: app.lambdaHandler Tracing: Active Events: diff --git a/kinesis-lambda/template.yaml b/kinesis-lambda/template.yaml index b41aa8c91..d2ed74dd3 100644 --- a/kinesis-lambda/template.yaml +++ b/kinesis-lambda/template.yaml @@ -14,7 +14,7 @@ Resources: Type: AWS::Serverless::Function Properties: CodeUri: src/ - Runtime: nodejs16.x + Runtime: nodejs20.x Handler: app.lambdaHandler Tracing: Active Events: diff --git a/lambda-cloudwatch/template.yaml b/lambda-cloudwatch/template.yaml index f7f732650..166d66ea9 100644 --- a/lambda-cloudwatch/template.yaml +++ b/lambda-cloudwatch/template.yaml @@ -17,7 +17,7 @@ Resources: Properties: CodeUri: src/ Handler: app.lambdaHandler - Runtime: nodejs16.x + Runtime: nodejs20.x # SAM Managed Policy for inserting custom CloudWatch Metrics Policies: - CloudWatchPutMetricPolicy: {} diff --git a/lambda-destinations-sam/template.yaml b/lambda-destinations-sam/template.yaml index d173eac8c..d6db05ef6 100644 --- a/lambda-destinations-sam/template.yaml +++ b/lambda-destinations-sam/template.yaml @@ -8,7 +8,7 @@ Globals: Function: Timeout: 3 MemorySize: 128 - Runtime: nodejs16.x + Runtime: nodejs20.x Architectures: - x86_64 diff --git a/lambda-dynamodb/template.yaml b/lambda-dynamodb/template.yaml index 3b8337cc9..2f6f13493 100644 --- a/lambda-dynamodb/template.yaml +++ b/lambda-dynamodb/template.yaml @@ -12,7 +12,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 Environment: Variables: diff --git a/lambda-eventbridge/template.yaml b/lambda-eventbridge/template.yaml index 29ccf1c78..2121a5183 100644 --- a/lambda-eventbridge/template.yaml +++ b/lambda-eventbridge/template.yaml @@ -16,7 +16,7 @@ Resources: CodeUri: src/ Handler: app.handler Timeout: 3 - Runtime: nodejs16.x + Runtime: nodejs20.x Policies: - EventBridgePutEventsPolicy: EventBusName: !Ref EventBusName diff --git a/lambda-function-url-sls/serverless.yml b/lambda-function-url-sls/serverless.yml index 1981cdf12..f3092808d 100644 --- a/lambda-function-url-sls/serverless.yml +++ b/lambda-function-url-sls/serverless.yml @@ -4,7 +4,7 @@ frameworkVersion: '^3' # requires serverless 3.12 or later provider: name: aws - runtime: nodejs16.x + runtime: nodejs20.x architecture: arm64 stage: ${opt:stage, "dev"} # Default stage to "dev" region: ${opt:region, "us-east-1"} # Default region to "us-east-1" diff --git a/lambda-function-url/template.yaml b/lambda-function-url/template.yaml index 2a1815336..468bdee47 100644 --- a/lambda-function-url/template.yaml +++ b/lambda-function-url/template.yaml @@ -12,7 +12,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 FunctionUrlConfig: AuthType: AWS_IAM diff --git a/lambda-inspector-scans/template.yaml b/lambda-inspector-scans/template.yaml index 66f3efdd3..0152d0283 100644 --- a/lambda-inspector-scans/template.yaml +++ b/lambda-inspector-scans/template.yaml @@ -10,7 +10,7 @@ Resources: FunctionName: !Sub ${AWS::StackName}-consumer CodeUri: src/ Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 128 Timeout: 15 Architectures: diff --git a/lambda-lambda/template.yaml b/lambda-lambda/template.yaml index 1da41ed68..3182e445e 100644 --- a/lambda-lambda/template.yaml +++ b/lambda-lambda/template.yaml @@ -9,7 +9,7 @@ Resources: Properties: CodeUri: ProducerFunction/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 EventInvokeConfig: DestinationConfig: @@ -25,7 +25,7 @@ Resources: Properties: CodeUri: OnFailureFunction/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 OnSuccessFunction: Type: AWS::Serverless::Function @@ -33,7 +33,7 @@ Resources: Properties: CodeUri: OnSuccessFunction/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 Outputs: ProducerFunctionName: diff --git a/lambda-layer-ssm-parameters/function/template.yml b/lambda-layer-ssm-parameters/function/template.yml index ce1c84cfa..5c7af4f34 100644 --- a/lambda-layer-ssm-parameters/function/template.yml +++ b/lambda-layer-ssm-parameters/function/template.yml @@ -20,7 +20,7 @@ Resources: Type: 'AWS::Serverless::Function' Properties: FunctionName: !Sub ${AppName}-function - Runtime: nodejs16.x + Runtime: nodejs20.x CodeUri: ./src Handler: app.handler FunctionUrlConfig: diff --git a/lambda-pinpoint/template.yaml b/lambda-pinpoint/template.yaml index d59634805..1ffdfec79 100644 --- a/lambda-pinpoint/template.yaml +++ b/lambda-pinpoint/template.yaml @@ -16,7 +16,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 128 Timeout: 100 Description: A simple example of sending an SMS with Pinpoint diff --git a/lambda-rekognition/template.yaml b/lambda-rekognition/template.yaml index 5cbb6d631..352462621 100644 --- a/lambda-rekognition/template.yaml +++ b/lambda-rekognition/template.yaml @@ -77,7 +77,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Description: Lambda function that will recieve CloudWatch events and will trigger CodeBuild build job. FunctionName: 'TextRecognitionLambdaFunction' diff --git a/lambda-s3-sfn/template.yaml b/lambda-s3-sfn/template.yaml index 2112767f1..db433a9a2 100644 --- a/lambda-s3-sfn/template.yaml +++ b/lambda-s3-sfn/template.yaml @@ -6,7 +6,7 @@ Description: > Globals: Function: - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 10 Environment: Variables: diff --git a/lambda-secretsmanager-node-sdkv3-sam/template.yml b/lambda-secretsmanager-node-sdkv3-sam/template.yml index 175ca166f..33bd22904 100644 --- a/lambda-secretsmanager-node-sdkv3-sam/template.yml +++ b/lambda-secretsmanager-node-sdkv3-sam/template.yml @@ -24,7 +24,7 @@ Resources: Properties: Description: Lambda function to retrieve Secrets Manager secret CodeUri: src/ - Runtime: nodejs16.x + Runtime: nodejs20.x Handler: app.handler MemorySize: 128 Timeout: 15 diff --git a/lambda-ses/template.yaml b/lambda-ses/template.yaml index e9eaaba8e..4aa5a8f2e 100644 --- a/lambda-ses/template.yaml +++ b/lambda-ses/template.yaml @@ -20,7 +20,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 MemorySize: 128 Environment: diff --git a/lambda-sfn-sls/serverless.yml b/lambda-sfn-sls/serverless.yml index 61250264c..631a9ff16 100644 --- a/lambda-sfn-sls/serverless.yml +++ b/lambda-sfn-sls/serverless.yml @@ -9,7 +9,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 diff --git a/lambda-sfn/template.yaml b/lambda-sfn/template.yaml index 1aa72acea..641b0bc78 100644 --- a/lambda-sfn/template.yaml +++ b/lambda-sfn/template.yaml @@ -12,7 +12,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 Policies: - StepFunctionsExecutionPolicy: diff --git a/lambda-sns-sms/template.yaml b/lambda-sns-sms/template.yaml index 01b505654..44ba4c4f8 100644 --- a/lambda-sns-sms/template.yaml +++ b/lambda-sns-sms/template.yaml @@ -16,7 +16,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 MemorySize: 128 Environment: diff --git a/lambda-sns/template.yaml b/lambda-sns/template.yaml index b709a350a..1408a1642 100644 --- a/lambda-sns/template.yaml +++ b/lambda-sns/template.yaml @@ -13,7 +13,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 MemorySize: 128 Environment: diff --git a/lambda-sqs/template.yaml b/lambda-sqs/template.yaml index cb79d1bfd..82cfae127 100644 --- a/lambda-sqs/template.yaml +++ b/lambda-sqs/template.yaml @@ -13,7 +13,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 MemorySize: 128 Environment: diff --git a/lambda-streaming-large-sam/template.yaml b/lambda-streaming-large-sam/template.yaml index c73f7c609..7bba2f9e0 100644 --- a/lambda-streaming-large-sam/template.yaml +++ b/lambda-streaming-large-sam/template.yaml @@ -7,7 +7,7 @@ Resources: Properties: CodeUri: src/ Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 30 MemorySize: 256 AutoPublishAlias: live diff --git a/lambda-streaming-sdk-sam/template.yaml b/lambda-streaming-sdk-sam/template.yaml index 5f814e53e..f1100a97b 100644 --- a/lambda-streaming-sdk-sam/template.yaml +++ b/lambda-streaming-sdk-sam/template.yaml @@ -8,7 +8,7 @@ Transform: Globals: Function: - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 10 MemorySize: 128 Architectures: diff --git a/lambda-streaming-ttfb-pipeline-sam/template.yaml b/lambda-streaming-ttfb-pipeline-sam/template.yaml index fb4670036..3bdd9597f 100644 --- a/lambda-streaming-ttfb-pipeline-sam/template.yaml +++ b/lambda-streaming-ttfb-pipeline-sam/template.yaml @@ -7,7 +7,7 @@ Resources: Properties: CodeUri: src/ Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 30 MemorySize: 256 AutoPublishAlias: live diff --git a/lambda-streaming-ttfb-write-sam-with-bedrock-streaming/template.yaml b/lambda-streaming-ttfb-write-sam-with-bedrock-streaming/template.yaml index f6f7dcaea..25e303c94 100644 --- a/lambda-streaming-ttfb-write-sam-with-bedrock-streaming/template.yaml +++ b/lambda-streaming-ttfb-write-sam-with-bedrock-streaming/template.yaml @@ -7,7 +7,7 @@ Resources: Properties: CodeUri: src/ Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 300 MemorySize: 512 AutoPublishAlias: live diff --git a/lambda-streaming-ttfb-write-sam/template.yaml b/lambda-streaming-ttfb-write-sam/template.yaml index 2212b72f2..a6ebe548e 100644 --- a/lambda-streaming-ttfb-write-sam/template.yaml +++ b/lambda-streaming-ttfb-write-sam/template.yaml @@ -7,7 +7,7 @@ Resources: Properties: CodeUri: src/ Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 30 MemorySize: 512 AutoPublishAlias: live diff --git a/lambda-vpc-secrets-sls/serverless.yml b/lambda-vpc-secrets-sls/serverless.yml index 4a5a0930b..03bce7471 100644 --- a/lambda-vpc-secrets-sls/serverless.yml +++ b/lambda-vpc-secrets-sls/serverless.yml @@ -4,7 +4,7 @@ frameworkVersion: '^3' # requires serverless 3.0 or later provider: name: aws - runtime: nodejs16.x + runtime: nodejs20.x architecture: arm64 stage: ${opt:stage, "dev"} # Default stage to "dev" region: ${opt:region, "us-east-1"} # Default region to "us-east-1" diff --git a/lambda/template.yaml b/lambda/template.yaml index 97ac938dc..b41de50a0 100644 --- a/lambda/template.yaml +++ b/lambda/template.yaml @@ -12,7 +12,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 512 EphemeralStorage: Size: 512 diff --git a/msk-lambda/template.yaml b/msk-lambda/template.yaml index 81df48e85..980c905d2 100644 --- a/msk-lambda/template.yaml +++ b/msk-lambda/template.yaml @@ -17,7 +17,7 @@ Resources: Properties: CodeUri: src/ Handler: app.lambdaHandler - Runtime: nodejs16.x + Runtime: nodejs20.x Events: MSKEvent: Type: MSK diff --git a/qldb-kinesis-lambda-dynamodb/template.yaml b/qldb-kinesis-lambda-dynamodb/template.yaml index f07c9b992..fcb603166 100644 --- a/qldb-kinesis-lambda-dynamodb/template.yaml +++ b/qldb-kinesis-lambda-dynamodb/template.yaml @@ -27,7 +27,7 @@ Resources: Properties: CodeUri: src Handler: qldb-streams-dynamodb.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 1024 Policies: - AWSLambdaBasicExecutionRole diff --git a/s3-eventbridge-direct/template.yaml b/s3-eventbridge-direct/template.yaml index 833ca896a..157e0b568 100644 --- a/s3-eventbridge-direct/template.yaml +++ b/s3-eventbridge-direct/template.yaml @@ -34,7 +34,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 128 Timeout: 3 Policies: diff --git a/s3-sqs-lambda/template.yaml b/s3-sqs-lambda/template.yaml index 0653f9472..644c0d7fe 100644 --- a/s3-sqs-lambda/template.yaml +++ b/s3-sqs-lambda/template.yaml @@ -68,7 +68,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x MemorySize: 2048 Layers: - !Sub 'arn:aws:lambda:${AWS::Region}:175033217214:layer:graphicsmagick:2' diff --git a/sam-webapp-cognito/template.yaml b/sam-webapp-cognito/template.yaml index b5ccaa2d0..695a10eaa 100644 --- a/sam-webapp-cognito/template.yaml +++ b/sam-webapp-cognito/template.yaml @@ -179,7 +179,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Events: HttpApi: Type: HttpApi diff --git a/sfn-apigw/template.yaml b/sfn-apigw/template.yaml index 5829a0720..05f106d69 100644 --- a/sfn-apigw/template.yaml +++ b/sfn-apigw/template.yaml @@ -32,7 +32,7 @@ Resources: Properties: CodeUri: src Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Events: Api: Type: Api diff --git a/sfn-lambda-dynamodb/template.yml b/sfn-lambda-dynamodb/template.yml index 623aa6cb5..096e973aa 100644 --- a/sfn-lambda-dynamodb/template.yml +++ b/sfn-lambda-dynamodb/template.yml @@ -34,7 +34,7 @@ Resources: - CloudWatchLogsFullAccess - DynamoDBCrudPolicy: TableName: !Ref DynamoDBTable - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 30 Tracing: Active Type: AWS::Serverless::Function diff --git a/sfn-lambda-lambda/template.yaml b/sfn-lambda-lambda/template.yaml index 7ef333db6..035895461 100644 --- a/sfn-lambda-lambda/template.yaml +++ b/sfn-lambda-lambda/template.yaml @@ -33,7 +33,7 @@ Resources: Properties: CodeUri: firstfunction/ Handler: first-function.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 Policies: - CloudWatchPutMetricPolicy: {} @@ -42,7 +42,7 @@ Resources: Properties: CodeUri: secondfunction/ Handler: second-function.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 Policies: - CloudWatchPutMetricPolicy: {} diff --git a/sfn-lambda/template.yaml b/sfn-lambda/template.yaml index 9805e85df..73680496f 100644 --- a/sfn-lambda/template.yaml +++ b/sfn-lambda/template.yaml @@ -33,7 +33,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 Policies: - CloudWatchPutMetricPolicy: {} diff --git a/sns-lambda/template.yaml b/sns-lambda/template.yaml index 7c2050d16..9cc94c6ed 100644 --- a/sns-lambda/template.yaml +++ b/sns-lambda/template.yaml @@ -25,7 +25,7 @@ Resources: Properties: CodeUri: src/ Handler: app.handler - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 3 MemorySize: 128 diff --git a/systems-manager-automation-to-stepfunctions/template.yaml b/systems-manager-automation-to-stepfunctions/template.yaml index dbd6dbd33..4f951f5b9 100644 --- a/systems-manager-automation-to-stepfunctions/template.yaml +++ b/systems-manager-automation-to-stepfunctions/template.yaml @@ -120,7 +120,7 @@ Resources: Properties: Handler: iterate.handler CodeUri: ./src - Runtime: nodejs16.x + Runtime: nodejs20.x Timeout: 60 ReservedConcurrentExecutions: 5