Skip to content

[startChatContactAPI] upgrade Lambda Node.js runtime #282

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ Resources:
Type: AWS::Lambda::LayerVersion
Properties:
CompatibleRuntimes:
- "nodejs18.x"
# Lambda Node.js runtime releases: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
- "nodejs22.x" # until Apr 30, 2027
- "nodejs20.x" # until Apr 30, 2026
- "nodejs18.x" # until Sep 1, 2025
- "nodejs16.x"
Content:
S3Bucket: !Join
Expand All @@ -70,7 +73,8 @@ Resources:
Description: AWS Lambda Function to initiate the chat with the end user
Handler: "startChatContact.handler"
Role: !GetAtt StartChatLambdaExecutionRole.Arn
Runtime: "nodejs18.x"
# Lambda Node.js runtime releases: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
Runtime: "nodejs22.x" # until Apr 30, 2027
MemorySize: 128
Timeout: 30
Layers:
Expand Down Expand Up @@ -229,7 +233,8 @@ Resources:
Handler: customResourceHelper.handler
MemorySize: 256
Role: !GetAtt CustomResourceHelperIamRole.Arn
Runtime: "nodejs18.x"
# Lambda Node.js runtime releases: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
Runtime: "nodejs22.x" # until Apr 30, 2027
Timeout: 300

CustomResourceHelperIamRole:
Expand Down Expand Up @@ -274,6 +279,7 @@ Resources:
SolutionAnonymousMetric:
Type: "Custom::LoadLambda"
Condition: AnonymousUsageMetrics
DependsOn: SolutionUuid
Properties:
ServiceToken:
Fn::GetAtt:
Expand Down