Table of contents
What is CodePipeline?
- CodePipeline builds, tests, and deploys your code every time there is a code change, based on the release process models you define. Think of it as a
CI/CD Pipeline
service.
Workflow of CodePipeline
A pipeline defines your release process
workflow
and describes how a new code change progresses through your release process. A pipeline comprises a series of stages (e.g.,build
,test
, anddeploy
), which act as logical divisions in your workflow. Each stage is made up of asequence of actions
, which are tasks such as building code or deploying to test environments.AWS CodePipeline
provides you with agraphical user interface
to create, configure, and manage your pipeline and its various stages and actions, allowing you to easily visualize and model your releaseprocess workflow
.
Previously on Days 50, 51 & 52, we have done the following:
Created a CodeCommit Repository.
Created a CodeBuild Project.
Created a CodeDeploy Application.
Today we will make a CodePipeline that will get the code from CodeCommit, Builds the code using CodeBuild, and deploys it to a Deployment Group.
Task-01 :
Step-01
: Go toCodePipeline
service fromAWS Management Console
.
Step-02
: Click onCreate pipeline
.
Step-03
: Give aname
to your pipeline and click onNext
.
Step-04
: SelectAWS CodeCommit
asSource provider
and select yourRepository name
andBranch name
and click onNext
.
Step-05
: SelectAWS CodeBuild
asBuild provider
and select yourRegion
andProject name
and click onNext
.
Step-06
: SelectAWS CodeDeploy
asDeploy provider
and select yourRegion
andApplication name
andDeployment group
and click onNext
.
Step-07
: Review your pipeline.
- Click on
Create pipeline
.
- Thus, your
pipeline is created
.
- Thus now go to the Public IP of your
EC2 Instance
and check the runningindex.html
file.
So we have successfully created a CI/CD Pipeline
on AWS
using CodeCommit
, CodeBuild
& CodeDeploy
.