[英]AWS python lambda deployment package how can i just pull the source or package from source control?
I have a lambda python deployment package, which means I have to create venv and zip it, and upload it each time I do some change to the python script.我有一个 lambda python 部署 package,这意味着我必须创建 venv 和 zip,并在每次对 python 脚本进行一些更改时上传它。
my question is how can configure the AWS lambda to use lambda from source control that means i what to get this flow:我的问题是如何配置 AWS lambda 以使用源代码管理中的 lambda,这意味着我将如何获得此流程:
function.py --> push to source control -> I manual pull from source control from AWS -> AWS using the new script function.py --> 推送到源代码控制 -> 我从 AWS 手动拉取源代码控制 -> AWS 使用新脚本
also, i missing the part of who will create the zip...另外,我错过了谁将创建 zip 的部分......
Take a look at the reference deployment Serverless CI/CD for the Enterprise on AWS
here .在此处查看Serverless CI/CD for the Enterprise on AWS
。 Note that this deployment uses only only AWS Services and there are a lot of other options besides them.请注意,此部署仅使用 AWS 服务,除此之外还有许多其他选项。 This is a good starting point to what you are looking for.这是您要查找的内容的良好起点。
If you want to set this up quickly and painlessly you can use CodeStar to create a Lambda Python example which is backed by either CodeCommit or Github and it will create the pipelines necessary to deploy your code whenever there is a change for full end to end CICD.如果您想快速轻松地进行设置,您可以使用 CodeStar 创建一个 Lambda Python 示例,该示例由 CodeCommit 或 Github 支持,它将创建部署代码所需的管道,只要完整端到端 CICD 发生变化.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.