简体   繁体   English

AWS python lambda 部署 package 我怎样才能从源代码管理中提取源代码或 package?

[英]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.

相关问题 AWS Lambda GitLab CI/CD 部署 package 大小比从我的本地环境部署大得多 - AWS Lambda GitLab CI/CD deployment package size is much bigger than deploy from my local environment 如何将 package AWS CDK 转化为 Lambda 层? - How to package AWS CDK into Lambda layer? 如何使用 aws cli 获取现有的 aws lambda 源代码 - how to get a existent aws lambda source code using aws cli Terraform 0.12 Lambda 和 Beanstalk package 部署 - Terraform 0.12 Lambda and Beanstalk package deployment AWS Api Gateway Lambda代理集成,如何从客户端请求中获取源端口 - AWS Api Gateway Lambda proxy integration, how to get source port from client request 使用无服务器框架将 Python package 部署到 AWS lambda 时出错 - Error deploying Python package to AWS lambda using Serverless framework 如何在单一来源的多个 go 服务中生成 grpc 代码为 package? - how to generate grpc code as package in multiple go service from single source? 通过 cloudformation 的 AWS Lambda 计划事件源 - AWS Lambda scheduled event source via cloudformation 在 AWS Lambda 上的 python 中使用枕头 package 保存图像时出现错误/错误的内容类型 - Error/Wrong Content-Type while saving image using pillow package in python on AWS Lambda 如何使用 AWS CLI 创建 AWS Lambda 函数? - How can I create an AWS Lambda function using the AWS CLI?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM