CloudFormation设置CodePipeline / CodeBuild以部署SAM应用程序 [英] CloudFormation to setup CodePipeline/CodeBuild to deploy SAM application

查看:127
本文介绍了CloudFormation设置CodePipeline / CodeBuild以部署SAM应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功设置了CodePipeline和CodeBuild来部署我的SAM应用程序。但是现在我想将其转换为CloudFormation。我该怎么做呢?我按照此处的步骤 http://docs.aws.amazon .com / lambda / latest / dg / automating-deployment.html

I have successfully setup CodePipeline and CodeBuild to deploy my SAM applications. But now I want to convert this to CloudFormation. How do I do this? I followed the steps here http://docs.aws.amazon.com/lambda/latest/dg/automating-deployment.html

我被困在CloudFormation模板的CodeBuild部分中...

I am stuck at the CodeBuild part of the CloudFormation template ...

推荐答案

如果要查找有关如何使用Cloudformation设置CodePipeline和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.

在示例中,您可以看到如何使用 AWS :: CodeBui ld :: Project 如何通过引用公共ProjectName参数在CodePipeline构建步骤中对其进行了引用。签出 AWS :: CodePipeline :: Pipeline的文档

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. Checkout the documentation for 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.

这篇关于CloudFormation设置CodePipeline / CodeBuild以部署SAM应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆