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