Last active
September 11, 2020 06:20
-
-
Save andreidiaconu90/d914ed9b56e35f57d854f39cac355cf7 to your computer and use it in GitHub Desktop.
codepipeline-stages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyCodePipeline: | |
Type: AWS::CodePipeline::Pipeline | |
Properties: | |
ArtifactStore[...] | |
RoleArn:[...] | |
Stages: | |
- Name: Source # this is the name that will show up in the AWS console, so consider this the user-friendly name | |
Actions: | |
- Name: Get-sources # this is the name used to reference a step by. Consider this the developer-friendly name | |
ActionTypeId: | |
Category: Source | |
Owner: AWS | |
Provider: CodeCommit #we're using CodeCommit but you can also use other supported repo providers | |
Version: "1" | |
OutputArtifacts: | |
- Name: code-artifact #the name of the zip file containing our source code. This will be used as InputArtifact by the following stages | |
Configuration: | |
BranchName: master | |
RepositoryName: my-repository-name | |
PollForSourceChanges: false | |
RunOrder: 1 | |
- Name: Staging | |
Actions: | |
- Name: Deploy-to-Staging | |
ActionTypeId: | |
Category: Build | |
Owner: AWS | |
Provider: CodeBuild | |
Version: "1" | |
RunOrder: 1 | |
Configuration: | |
ProjectName: "Deploy-to-staging" # reference to the CodeBuild project with this name. Must mach the name of an existing CodeBuild project | |
InputArtifacts: | |
- Name: code-artifact # reference to the source code artifact with the same name. Must mach the Output artifact name in the Source stage. | |
- Name: Promote | |
Actions: | |
- Name: Promote-staging-to-production #Built-in step that adds a manual approval step | |
ActionTypeId: | |
Category: Approval | |
Owner: AWS | |
Provider: Manual | |
Version: "1" | |
- Name: Production | |
Actions: | |
- Name: Deploy-to-Production | |
ActionTypeId: | |
Category: Build | |
Owner: AWS | |
Provider: CodeBuild | |
Version: "1" | |
RunOrder: 1 | |
Configuration: | |
ProjectName: "Deploy-to-production" #reference to the CodeBuild project with this name. Must mach the name of an existing CodeBuild project | |
InputArtifacts: | |
- Name: code-artifact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment