# Day 53: Your CI/CD pipeline on AWS - Part 4 🚀 ☁(Jan 18, 2024)

## **🙏 Introduction:**

In this blog, we will deploy a CI/CD pipeline on AWS using tools such as CodeCommit, CodeBuild, CodeDeploy, CodePipeline, and S3. This is Part 4 of the series.

## **🔶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.

## **🎯Task: 1**

1. ### Create a CodePipeline that gets the code from CodeCommit, Builds the code using CodeBuild and deploys it to a Deployment Group.
    

* Go to the CodePipeline console and click **Create pipeline**.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703777544137/b9c3fa60-67ca-4994-bd0a-b16e68d9b305.png?auto=compress,format&format=webp align="left")

* Enter the name for your pipeline and, in the service role, select **New service role**.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703777792897/caa1dff8-2f49-4bcb-a5bf-73b91bd90e63.png?auto=compress,format&format=webp align="left")

* Enter the Source provider — CodeCommit repository information
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703778051211/8dfbd6db-c82d-431b-abb1-35c2c1bed93b.png?auto=compress,format&format=webp align="left")

* Enter Build stage details — Enter CodeBuild information
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703778149286/07b07351-2ea8-4215-a264-5db24fecc0ff.png?auto=compress,format&format=webp align="left")

* Enter CodeDeploy information, including the Application name and Deployment group name.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703778449197/fe82c159-d1b4-4c1e-b444-503dc257cea5.png?auto=compress,format&format=webp align="left")

* Review the details one more time and click on **Create Pipeline**
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703778597239/7e8196d7-a786-4265-b4f6-b0910a999be4.png?auto=compress,format&format=webp align="left")

* we have successfully created a CodePipeline that automates the deployment process.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703778847996/086c6eec-6006-4999-aea4-9544cc215555.png?auto=compress,format&format=webp align="left")

* Navigate to your instance's public IP address, and you will see the final output of index.html.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703780145166/24d69318-6e3d-4fe0-b7d3-7f0930248f41.png?auto=compress,format&format=webp align="left")

* We will make some changes to the index.html file.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703780460642/ab4cf61d-5c39-40a6-a5ca-78b6d79a730c.png?auto=compress,format&format=webp align="left")

* Code Pipeline started automatically
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703780536074/72733c25-3964-488c-a9f9-fd25a39a0f10.png?auto=compress,format&format=webp align="left")

* Refresh the page, and you will see the updated output of the index.html file.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703780703327/61aa4edd-286f-47af-869e-dfce026783e8.png?auto=compress,format&format=webp align="left")
