@@ -50,7 +50,10 @@ Resources:
5050 Type : AWS::Lambda::LayerVersion
5151 Properties :
5252 CompatibleRuntimes :
53- - " nodejs18.x"
53+ # Lambda Node.js runtime releases: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
54+ - " nodejs22.x" # until Apr 30, 2027
55+ - " nodejs20.x" # until Apr 30, 2026
56+ - " nodejs18.x" # until Sep 1, 2025
5457 - " nodejs16.x"
5558 Content :
5659 S3Bucket : !Join
@@ -70,7 +73,8 @@ Resources:
7073 Description : AWS Lambda Function to initiate the chat with the end user
7174 Handler : " startChatContact.handler"
7275 Role : !GetAtt StartChatLambdaExecutionRole.Arn
73- Runtime : " nodejs18.x"
76+ # Lambda Node.js runtime releases: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
77+ Runtime : " nodejs22.x" # until Apr 30, 2027
7478 MemorySize : 128
7579 Timeout : 30
7680 Layers :
@@ -229,7 +233,8 @@ Resources:
229233 Handler : customResourceHelper.handler
230234 MemorySize : 256
231235 Role : !GetAtt CustomResourceHelperIamRole.Arn
232- Runtime : " nodejs18.x"
236+ # Lambda Node.js runtime releases: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
237+ Runtime : " nodejs22.x" # until Apr 30, 2027
233238 Timeout : 300
234239
235240 CustomResourceHelperIamRole :
@@ -274,6 +279,7 @@ Resources:
274279 SolutionAnonymousMetric :
275280 Type : " Custom::LoadLambda"
276281 Condition : AnonymousUsageMetrics
282+ DependsOn : SolutionUuid
277283 Properties :
278284 ServiceToken :
279285 Fn::GetAtt :
0 commit comments