I'm using the Serverless Framework 1.x and I want to define my serverless.yml to reference a function that is located in another folder (not in the root level).
For example, in the following folder structure, I want to reference a handler() function that is defined in a function1.js file inside the folder functions.
serverless.yml
functions/
function1.js
function2.js
function3.js
package.json
node_modules/
..
All examples that I see consider the following basic scenario where the file is in the root:
serverless.yml
handler.js
Where the serverless.yml file is defined by:
functions:
hello:
handler: handler.hello