简体   繁体   English

CloudFormation设置CodePipeline / CodeBuild以部署SAM应用程序

[英]CloudFormation to setup CodePipeline/CodeBuild to deploy SAM application

I have successfully setup CodePipeline and CodeBuild to deploy my SAM applications. 我已经成功设置了CodePipeline和CodeBuild来部署我的SAM应用程序。 But now I want to convert this to CloudFormation. 但是现在我想将其转换为CloudFormation。 How do I do this? 我该怎么做呢? I followed the steps here http://docs.aws.amazon.com/lambda/latest/dg/automating-deployment.html 我按照这里的步骤http://docs.aws.amazon.com/lambda/latest/dg/automating-deployment.html

I am stuck at the CodeBuild part of the CloudFormation template ... 我被困在CloudFormation模板的CodeBuild部分中...

If you're looking for an example of how to set up CodePipeline and CodeBuild using Cloudformation, I'd recommend checking out this example template from one of my colleagues, which does all of this. 如果您正在寻找有关如何使用Cloudformation设置CodePipeline和CodeBuild的示例,我建议您从我的一位同事那里签出此示例模板 ,以完成所有这些工作。

In the example, you can see how a code build project is set up using AWS::CodeBuild::Project , and how it's refererenced in the CodePipeline Build step by using a referencing a common ProjectName parameter. 在示例中,您可以看到如何使用AWS :: CodeBuild :: Project设置代码构建项目 ,以及如何通过引用公共ProjectName参数在CodePipeline Build步骤中对其进行引用。 Checkout the documentation for AWS::CodePipeline::Pipeline . 查阅AWS :: CodePipeline :: Pipeline的文档。

Hopefully that helps, but if you need further assistence, I'd try clarifying what you've done so far, and what specifically you're getting stuck on. 希望这会有所帮助,但是如果您需要进一步的坚持,我会尝试澄清您到目前为止所做的事情,以及您具体坚持的事情。

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

相关问题 如何在 CodePipeline 中使用 CloudFormation 部署多个 codeBuild 项目 - How to deploy several codeBuild projects with CloudFormation in CodePipeline AWS CodePipeline CodeBuild SAM Lambda - AWS CodePipeline CodeBuild SAM Lambda 创建CodePipeline的问题,适用于AWS SAM应用程序的Deploy阶段 - Problem creating CodePipeline, Deploy stage for AWS SAM application 将现有的CodePipeline / CodeBuild项目导出到Cloudformation - Export existing CodePipeline/CodeBuild projects to Cloudformation AWS CodePipeline:在CodeBuild中获取CloudFormation输出 - AWS CodePipeline: Get CloudFormation outputs in CodeBuild 使用 CloudFormation 或 SAM 部署身份提供者 - Deploy Identity Provider with CloudFormation or SAM 如何使用 sam 运行使用 codepipeline 部署的 cdk 应用程序? - How do you use sam to run a cdk application that uses codepipeline to deploy? 带有“sam pipeline init”的 AWS SAM 部署命令无法持久化 CodePipeline - AWS SAM deploy command with `sam pipeline init` failed to persist CodePipeline AWS CodePipeline:如何将CloudFormation操作的输出传递给CodeBuild操作 - AWS CodePipeline: How to pass output from CloudFormation action to a CodeBuild action 通过Cloudformation,CodeBuild和CodePipeline将python包部署到AWS Lambda - Deploying a python package to AWS Lambda via Cloudformation, CodeBuild and CodePipeline
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM