threadheap/serviceless

Dependencies between services

Opened this issue · 0 comments

egut commented

This look promising. I was just about to add question to the forum about how to organize multiple services any you have the tool :)

On thing I don't see is dependencies or run order to deploy B you first have to deploy A.
eg to deploy API you need to deploy the cognito first.

This can be done with specifying the service order in the main serverless.yml file:

service: main
custom:
  deployorder:
    - cognito
    - api
      :

or dependencies in the specific serverless.yml files:

service: api
custom: 
  dependencies:
     - cognito

 :