AWS CodePipeline Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 11: Line 11:
=Simple GitHub - Simulated Shell Build - Simulated Deployment Pipeline=
=Simple GitHub - Simulated Shell Build - Simulated Deployment Pipeline=


==Prerequisites==
{{Internal|Simple GitHub Simulated Shell Build Simulated Deployment AWS CodePipeline Pipeline|Simple GitHub - Simulated Shell Build - Simulated Deployment Pipeline}}
 
* The example requires a GitHub repository to be available. We'll use https://github.com/ovidiuf/aws-pipeline-source-example.
* The CodeBuild and CodePipeline service roles must be created in advanced and referred from the CloudFormation stack specification by their ARN. I tried creating them as part of the same stack, but I got: "CodeBuild is not authorized to perform: sts:AssumeRole on ...". If they exist when the stack creation is attempted, it works. <Font color=darkgray>TODO: try to declare them in the same stack, experiment with dependencies, try to make this work.</font>
 
==Procedure==
 
The CodePipeline pipeline, the delegate CodeBuild project, required service roles and the S3 bucket to keep the artifacts produced by the pipeline will be created as part of one CodeFormation stack:
 
<syntaxhighlight lang='yaml'>
</syntaxhighlight>

Revision as of 06:24, 15 March 2019