serverless deploy function
with a custom docker image fails
#12778
Labels
serverless deploy function
with a custom docker image fails
#12778
Issue description
I'm in the process of upgrading to Serverless v4. I have a lambda that I'm attempting to deploy with
serverless deploy function
. This lambda, like many others in my app, is deployed with a custom docker image, However, when I runserverless deploy function
, I get this error:When I run with
--debug
, I see this suspicious-looking request in the output just before the error:The presence of
Runtime: 'nodejs20.x'
in that request seems like a bug. That's the default runtime, and I haven't specified a runtime for this function, but just the image config should be there, not a built-in lambda runtime.For whatever reason, this only seems to affect
serverless deploy function
; I'm able to runserverless deploy
and all my functions get deployed correctly. I'm happy to work on a PR, as this is a blocker for my upgrade to v4.Aside: my original thought was to use
patch-package
to modify serverless to unblock our upgrade quickly, but I noticed that the installed serverless source doesn't even live innode_modules
anymore. Is there anywhere I can read more about that decision and its implications for typical dev workflows? I don't see anything about it in CONTRIBUTING.md or test/README.md.Context
I am using Serverless 4.2.4 but I don't have an active subscription yet, so
serverless support
refuses to run.Slimmed down + simplified `serverless.yml`
Output of `sls deploy function -f manage-dk --debug`
The text was updated successfully, but these errors were encountered: