Recommended Project Structure for multi-function SAM Template

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 08:47:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!