today, when i tried to update one of my functions with:
sls deploy -f myFunction --config serverless-system.yml
i got: The runtime parameter of nodejs12.x is no longer supported for creating or updating AWS Lambda functions
i have updated my yaml to:
but it still dosnt let me update my function.
when changing the runtime in the aws website it let me update the function but after the update i get:
Runtime.ImportModuleError: Error: Cannot find module ‘aws-sdk’"
in my yaml i have:
my questions are:
- how to update a single function runtime through the cli?
- how to fix the aws-sdk error ?
- In general, is there any breaking changes between Node 18 and Node 12, disregarding external packages?
this is my setup:
Framework Core: 1.59.1
Components Core: 1.1.2
Components CLI: 1.5.2
it is a very big project with lots of functions, and i really trying to avoid from updating the all stack.