Day 53: CI/CD pipeline on AWS - Part 4๐Ÿš€

Day 53: CI/CD pipeline on AWS - Part 4๐Ÿš€

ยท

2 min read

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 workflowand describes how a new code change progresses through your release process. A pipeline comprises a series of stages (e.g., build, test, and deploy), which act as logical divisions in your workflow. Each stage is made up of a sequence of actions, which are tasks such as building code or deploying to test environments.

  • AWS CodePipeline provides you with a graphical user interface to create, configure, and manage your pipeline and its various stages and actions, allowing you to easily visualize and model your release process workflow.

Product-Page-Diagram_AWS-CodePipeline 4a1bea38d3c8d3b2c1384dd0a7d2a858f4350471

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 to CodePipeline service from AWS Management Console.

Screenshot from 2023-08-11 23-55-59

  • Step-02: Click on Create pipeline.

Screenshot from 2023-08-11 23-56-25

  • Step-03: Give a name to your pipeline and click on Next.

Screenshot from 2023-08-11 23-56-45

  • Step-04: Select AWS CodeCommit as Source provider and select your Repository name and Branch name and click on Next.

Screenshot from 2023-08-11 23-57-08

  • Step-05: Select AWS CodeBuild as Build provider and select your Region and Project name and click on Next.

Screenshot from 2023-08-11 23-57-33

  • Step-06: Select AWS CodeDeploy as Deploy provider and select your Region and Application name and Deployment group and click on Next.

Screenshot from 2023-08-11 23-58-24

  • Step-07: Review your pipeline.

Screenshot from 2023-08-11 23-58-39

  • Click on Create pipeline.

Screenshot from 2023-08-11 23-58-49

  • Thus, your pipeline is created.

Screenshot from 2023-08-12 00-01-38

  • Thus now go to the Public IP of your EC2 Instance and check the running index.html file.

So we have successfully created a CI/CD Pipeline on AWS using CodeCommit, CodeBuild & CodeDeploy.


Did you find this article valuable?

Support DevOps by becoming a sponsor. Any amount is appreciated!

ย