This is a fix for case when there is no resources defined in serverless.yml. The problem was that during this assignment const resources = service.resources || {};, resources variable was getting {} as a value, but not reference to service.resources.
This is a fix for case when there is no resources defined in serverless.yml. The problem was that during this assignment
const resources = service.resources || {};
,resources
variable was getting{}
as a value, but not reference toservice.resources
.