You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
AWS has been sending emails to DLP saying that the node runtime of the API Gateway Lambda endpoints were running on Node 14 and that we are recommended to use Node js v18 as the runtime.
Solution
For the Api construct in SST (under AppStack.ts, set the runtime prop for the lambda (under default: {functions: {...}}) to be "nodejs18.x".
View these links from SST for more detail:
cd serverless && yarn sst dev - deploy api to dev stack (set resource name as dev) and then see if the nodejs runtime is version 18
Make sure to run an SST prod deploy when ready right about when you merge PR
Other considerations
Github action to automatically do sst deploy
Github action to validate if the AppStack.ts is configured correctly
dev vs. prod stack best practice (@dwu359 can you comment here)
Steps to reproduce
Go to AWS Management console and view the API Gateway Lambdas
The text was updated successfully, but these errors were encountered:
Operating system
Windows, MacOS, Linux
Bug description
Problem
AWS has been sending emails to DLP saying that the node runtime of the API Gateway Lambda endpoints were running on Node 14 and that we are recommended to use Node js v18 as the runtime.
Solution
For the Api construct in SST (under AppStack.ts, set the runtime prop for the lambda (under default: {functions: {...}}) to be "nodejs18.x".
View these links from SST for more detail:
https://docs.sst.dev/constructs/Api - configure Function property within the Api construct
https://docs.sst.dev/constructs/Function#runtime - function runtime property
Testing Methodology
cd serverless && yarn sst dev - deploy api to dev stack (set resource name as dev) and then see if the nodejs runtime is version 18
Make sure to run an SST prod deploy when ready right about when you merge PR
Other considerations
Github action to automatically do sst deploy
Github action to validate if the AppStack.ts is configured correctly
dev vs. prod stack best practice (@dwu359 can you comment here)
Steps to reproduce
Go to AWS Management console and view the API Gateway Lambdas
The text was updated successfully, but these errors were encountered: