简体   繁体   English

从lambda函数开始

[英]Start with lambda functions

I've done some small tests with lambda functions on AWS and it's amazing how everything works, I would like to start a project in an organize way: with a repo and a coherent structure but I don't know how to get the coherent structure, do you have any clue?我在 AWS 上用 lambda 函数做了一些小测试,一切都很好,我想以有组织的方式开始一个项目:有一个回购和一个连贯的结构,但我不知道如何获得连贯的结构,你有什么线索吗?

In my head, I would like to have something like a monorepo or structure with every lambda function in a folder, with all their dependencies in their packages.json or similar, having some order, do you know any scaffolding, project in order to get that?在我的脑海中,我想要一个类似 monorepo 或结构的东西,每个 lambda function 在一个文件夹中,它们的所有依赖项都在它们的包中。json 或类似的东西,有一些顺序,你知道任何脚手架,项目为了得到那? Also it would be glad some CI to deploy with "no effort".也很高兴一些 CI 可以“毫不费力”地部署。

If you a newbie with lambda functions and overall with AWS in my mind you can try to use the serverless framework for creating mono repo with different lambdas.如果您是具有 lambda 函数的新手,并且在我的脑海中总体上使用 AWS,您可以尝试使用无服务器框架来创建具有不同 lambda 的 mono 存储库。

https://github.com/serverless/examples/tree/master/aws-node-rest-api-with-dynamodb https://github.com/serverless/examples/tree/master/aws-node-rest-api-with-dynamodb

my guess is the simplest way我的猜测是最简单的方法

also a lot of examples you can find here: https://serverless.com/examples/您还可以在这里找到很多示例: https://serverless.com/examples/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM