Step 1 – Open CodePipeline : Open it by Searching or Click CodePipeline from sidebar on CodeDeploy
Step 2 – Create pipeline : Click on Create pipeline
Step 3 – Choose pipeline settings :
Steps | ||
(i) | Choose pipeline settings | Pipeline name: <name-codepipeline-name> |
Service role : Select New service role | ||
Role name : <name-it or auto generates> | ||
Tick Allow AWS CodePipeline to create a service role so it can be used with this new pipeline | ||
(ii) | Add source stage | Source provider : AWSCodeCommit |
Repository name : <previously-created-codecommit-repo> | ||
Branch name : main | ||
Change detection options : SelectAmazon CloudWatch Events (recommended) | ||
Output artifact format : SelectCodePipeline default | ||
(iii) | Add build stag | Skip build stage |
(iv) | Add deploy stage | Deploy provider : AWS CodeDeploy |
Region : N.Virginia | ||
Application name : <your-application-name> | ||
Deployment group : <your-Deployment-group-name> | ||
(v) | Review | Review Details |
Click on Create pipeline at bottom |