CloudFormation to setup CodePipeline/CodeBuild to deploy SAM application

馋奶兔 提交于 2019-12-21 06:57:40

问题


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

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


回答1:


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.

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.



来源:https://stackoverflow.com/questions/46141270/cloudformation-to-setup-codepipeline-codebuild-to-deploy-sam-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!