I’ve created a new service folder with:
sls create --template google-nodejs —path customers.
This created a folder called
customers/ with 3 files in it:
Now I’m editing
customers/serverless.yml and i’m just curious as to proper formatting for multiple functions (CRUD-like).
I found a couple different formats out in the wild, and have read the docs, but I’m having trouble. Can someone tell me what’s wrong with the following, I keep getting
Deployment failed: RESOURCE ERROR - Name in request must be equal to the name of the function. Here are the relevant lines from
functions: create: handler: create events: - http: path: customers method: post list: handler: list events: - http: path: customers method: get