How to configure several services in the serverless.yml

I want to add several services to the same serverless.yml. How can i do it?

Doesn’t sound like you can.

AFAIK, Serverless is built with a microservices approach in mind, so it is expected that you build a separate serverless.yml for each service.

1 Like

Thanks for the answer
So in deployment process we have to deploy each service separately?

Typically you have one service per Serverless project. Each service should be independent and deployed on its own.

For small projects you may find it easier to have one Serverless project with everything in it. If that’s the case then you could use the folder structure to keep your code separate but you’ll still have a single serverless.yml.

1 Like