Skip to content
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
6 changes: 3 additions & 3 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,15 @@ Resources:
CwCustomWidgetNodeJsLayer:
Type: AWS::Serverless::LayerVersion
Metadata:
BuildMethod: nodejs14.x
BuildMethod: nodejs20.x
Properties:
Description:
!Sub "Lex Analytics CloudWatch Custom Widget Node.js layer for \
stack: ${AWS::StackName}"
ContentUri: ./src/lambda_layers/cw_custom_widget_nodejs
LayerName: !Sub "LexAnalyticsSharedNodeJs-${AWS::StackName}"
CompatibleRuntimes:
- nodejs14.x
- nodejs20.x

SharedCfnCrPythonLayer:
Type: AWS::Serverless::LayerVersion
Expand Down Expand Up @@ -320,7 +320,7 @@ Resources:
Description: !Sub
CloudWatch Custom Widget for ${AWS::StackName}
Handler: index.handler
Runtime: nodejs14.x
Runtime: nodejs20.x
Layers:
- !Ref CwCustomWidgetNodeJsLayer
MemorySize: 512
Expand Down