serverless-application-model icon indicating copy to clipboard operation
serverless-application-model copied to clipboard

Lambda functions in separate files sharing the same API gateway

Open pradeepd12 opened this issue 8 years ago • 2 comments

Hello,

I would like to deploy lambda functions (using SAM), each in it's own template.yaml (Doing this for modularity purposes). I am assuming each of these functions would end up in a separate stack. I would also like to deploy APIGateway and would like each one of these functions to reference the same API gateway (maybe provisioned in either of the lambda function stacks or a separate stack). Does SAM support this? Samples would greatly help.

If SAM does not support this, any other alternatives?

pradeepd12 avatar Feb 01 '18 01:02 pradeepd12

Could'nt the API Gateway yaml be put in its own file and referenced in each lambda as show in the HOWTO ?

omatrot avatar Feb 01 '18 14:02 omatrot

@omatrot It literally says the feature is not supported in the documentation. May be a removed in the latest versions? Any workaround??

ghost avatar Nov 07 '18 15:11 ghost