I have a new project that requires a relatively small amount of services, maybe 10 or less (and therefore it is not economical to place each in a separate project repository). Each service will be defined as an AWS::Serverless::Function via SAM Template. My question is: what is the recommended way to organize or structure such a project?
Currently the structure is:
|- src
|- lambdas
|- service-one
|- stuff
|- package.json
|- service-two
|- stuff
|- package.json
|- other-stuff
|- test
|- package.json
Is there a way to avoid having each lambda act as its own sub-project with unique package.json
and etc?
来源:https://stackoverflow.com/questions/51353076/recommended-project-structure-for-multi-function-sam-template