I was surprised to find out all files under the users folder was deployed to a specific function. for example: create,get,list,update,delete files was deployed to create lambda function even so it only needs the create.js file. how can I tell serverless to deploy only the relevant files?
I’ve got the following files structure under users (REST API) folder:
users
–create.js
–get.js
–list.js
–update.js
–serverless.yml
with functions defined on yml like so:
functions:
create:
handler: create.handler
events:
- http:
path: users
method: post
etc…