AWS CodePipeline Tutorial

A jurney to the AWS CI/CD (Part - 4)

AWS CodePipeline Tutorial

Day 53 of #90DaysOfDevOps

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

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

This tutorial is continued from previous CI/CD blogs.

Let's start.

  • Go to AWS CodePipeline and create a pipeline.

  • In the pipeline settings enter a name, choose v1/v2 type, select new service role and then click on next.

  • Add source stage: choose CodeCommit as source provider, repo name, branch name. In the change detection options choose AWS CodePipeline and in output artifact format choose default.

  • Add build stage: Select the build provider as AWS CodeBuild, keep the same region, select the project name.

  • Add deploy stage: Select the deploy provider as AWS CodeDeploy, keep the same region, and select the application name and the deployment group.

  • Review and click on Create.

Your pipeline will start running; You need to wait a few minutes to complete it.

You can check in the above screenshots that all the stages are completed successfully.

Now, if I make any change in CodeCommit, then pipeline will automatically trigger and deploy the change.

Thank You.