Skip to content

Update template.yaml #11

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: main
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
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