Closed yezarela closed 2 years ago
That's for the PR.
Reviewing this lead my to find the actual issue with is in Serverless Dashboard Plugin. I created a PR on their end and now I'm waiting for it to be accepted. Please see #310 to follow up on this issue.
When enabling serverless dashboard in the yml file by specifying
org
andapp
, by default serverless will wrap our lambda functions and addserverless_sdk
to our lambda function, which then results for example:_Note: smain.js comes from `s$fnname.js`
But, since serverless-plugin-warmup by default only includes
warmup/${warmerName}/**
in the package pattern, the files generated for serverless dashboard will not be included when packaging the lambda (which then results error due to missing files).As we can see in the generated cloudformation file, the handler path is modified to the wrapped one:
Current workaround for this, is by specifying the generated files in package pattern:
But I think would be better if those files are included by default, and this little PR will do that.
Would like to hear any feedback! Thank you