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

CloudFormation to setup CodePipeline/CodeBuild to deploy SAM application

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

我卡在了 CloudFormation 模板的 CodeBuild 部分...

如果您正在寻找有关如何使用 Cloudformation 设置 CodePipeline 和 CodeBuild 的示例,我建议您从我的一位同事那里查看 this example template,它完成了所有这些工作。

示例中可以看到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.

希望这对您有所帮助,但如果您需要进一步的帮助,我会尝试澄清您到目前为止所做的事情,以及您具体遇到的问题。