Closed antoniogiordano closed 4 years ago
We should add a higher level to the structure, that becomes a collection of services. Every service is a different serverless json config file. During deploy, we can specify the config file, so there should be no specific issue to do that. But deploy function should be moved from a simple CLI command (that is DEPLOY:stage right now) containing the invoke of SLS, to a RLN cli command take internally calls SLS deploy as many times as the different services and json config files created. A couple of things to keep in mind:
How would we handle dependencies (package.json deps and shared code like models, services)? Regarding point 2: lambda can be invoked also between services (through aws-sdk)
https://github.com/serverless/examples/tree/master/aws-node-shared-gateway here is an example on how to use a shared api gateway
can you link the blog of point 3?
https://www.serverless.com/blog/serverless-workaround-cloudformation-200-resource-limit
https://www.serverless.com/framework/docs/providers/aws/events/apigateway/#share-api-gateway-and-api-resources