Hi, everyone, and welcome back.
Now, in today's video, we are going to discuss about the code pipeline service.
Now, at this stage we have already explored various code services and also the benefits that it provides,
for example, code.
It allows us to store the code.
Code.
We can go ahead and face the code from code commit and it can compile it.
And also the artifacts binary are stored in the S3 bucket.
Code deploy can fetch the artifact binary and it can deploy it to various compute resources like easy
to instances.
So this is fine.
Now, one of the challenges at this stage is that each service is still working independently, so the
entire process is manual.
For example, let's say today someone from the developer team, they added a new code to the code comment.
So now what you'll have to do, you'll have to go to the code build service, you'll have to press the
start build button.
Then the binary would be stored in the S3 bucket, the latest binary.
Then you'll have to go to code, deploy service and click on start deployment button and the code deploy
will then start the deployment.
So everything is manual at this stage and this is the challenge which needs to be solved.
So in order to overcome this, A has introduced the code pipeline.
Service Code pipeline is a continuous delivery service to automate the steps required to release the
software.
So what it does, it connects all of these three services, which is code commit, code, build and
code deploy in such a way that whenever someone adds a new change to the code, commit automatically
code will be triggered after code, build completes automatically code deploy will be triggered.
So the entire pipeline is automated using the code pipeline service.
So let's go ahead and look into it practically.
Now for today's video, I'm connected to the EC2 instance.
Let's go to the temp directory.
And in that temp directory I have a binary of my app.
I'll go ahead and remove this specific binary.
All right.
So it's this operation not permitted primarily because I'm logged in with easy to use it.
I'll use the sudo to remove the file.
Now let's do one thing in the code commit repository.
We have a file of CPP, which is basically our helloworld code.
Let's go ahead and edit this.
We'll make some changes and we'll look into how the code pipeline can automate the entire process so
it will detect the changes in code, commit.
It will start the code process.
It will start the code deploy process.
All right.
So this time, let's go ahead and make some change.
I'll say Hello world.
Alright?
Or to name I'll just say Z email, I'll say Z, internal and incoming message.
I'll say Added Hello World.
Once, then you can go ahead and commit the changes.
Alright, so once the changes have been committed, go the pipeline will go ahead and automatically
detect the change.
So if you see, if I refresh, the recent execution is now in progress and the latest source revision
here is added Helloworld.
So if I open up this test pipeline, you'll see the first stage here is code comment.
So it has detected some changes in code comment it faced that changes and now code pipeline is running
the build stage and in build stage we have the code build service.
Once the build stage completes, it will go ahead and it will run the deploy stage where the binary
would be deployed.
And once the binary would be deployed, since we had already removed the older version of the binary,
you will see my AB binary available once more in the SC two instance.
So currently still the code build stage is running.
Let's quickly wait for a moment here for the stage to be completed.
All right.
So at this stage our code build is now succeeded.
So now the third part is code deploy.
So code pipeline is also running the code deploy.
So let's quickly also wait for code deployed to be completed.
Great.
And our deploy stage is also completed.
So this means that all of our stages as part of our entire pipeline is now completed.
Since deploy stage is completed, the My AB binary should be available.
So in that tmp directory you will see the my AB binary is now deployed through code deploy.
All right.
So I hope with this you understood the basics of the code pipeline service and how it integrates all
of the three code commit code, build and code deploy so that you can have a seamless release of software.
So with this will conclude today's video.