aws-samples / aws-sdk-js-notes-app

A simple note taking application using modular AWS SDK for JavaScript (v3)
Other
81 stars 30 forks source link

feat(backend): use nodejs14.x runtime in lambdas #23

Closed trivikr closed 3 years ago

trivikr commented 3 years ago

Issue

aws-cdk@1.89.0 now supports nodejs14.x runtime in lambda.

Description

Upgrades version of Node.js runtime to latest LTS 14.x in Lambda.

Testing

Verified that notes-app is working as designed.

yarn cdk diff ```console Stack aws-sdk-js-notes-app Resources [~] AWS::Lambda::Function listNotes/handler listNoteshandlerDC187D34 └─ [~] Runtime ├─ [-] nodejs12.x └─ [+] nodejs14.x [~] AWS::Lambda::Function createNote/handler createNotehandlerBA768AA5 └─ [~] Runtime ├─ [-] nodejs12.x └─ [+] nodejs14.x [~] AWS::Lambda::Function getNote/handler getNotehandler167C5FCF └─ [~] Runtime ├─ [-] nodejs12.x └─ [+] nodejs14.x [~] AWS::Lambda::Function updateNote/handler updateNotehandler6A5A41DF └─ [~] Runtime ├─ [-] nodejs12.x └─ [+] nodejs14.x [~] AWS::Lambda::Function deleteNote/handler deleteNotehandlerC903D399 └─ [~] Runtime ├─ [-] nodejs12.x └─ [+] nodejs14.x ```
Lambda console screenshot (nodejs12.x) ![before](https://user-images.githubusercontent.com/16024985/107539876-43a4fb80-6b7a-11eb-9558-d692d46157db.png)
Lambda console screenshot (nodejs14.x) ![after](https://user-images.githubusercontent.com/16024985/107539912-4f90bd80-6b7a-11eb-9570-ea2819233fe2.png)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.