CI/CD pipeline on AWS : Part-4

CI/CD pipeline on AWS : Part-4

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

Make sure you have CodeCommit, CodeBuild, CodeDeploy, Deployment Group, EC2 instance already configured in previous parts.

Refer my previous blogs for your reference: https://kshitijaa.hashnode.dev/cicd-pipeline-on-aws-part-1 https://kshitijaa.hashnode.dev/cicd-pipeline-on-aws-part-2 https://kshitijaa.hashnode.dev/cicd-pipeline-on-aws-part-3

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. Click "Create pipeline."

Enter a name for your pipeline.

Under "Source provider," choose "AWS CodeCommit" Select the repository that we have already created and branch as master to deploy. Click "Next."

Under "Build provider," choose "AWS CodeBuild" Select "build project name." Click Next."

Under "Deploy provider," choose "AWS CodeDeploy" Select the deployment group you created earlier. Click "Next."

No alt text provided for this image

Review the pipeline settings and click "Create pipeline."

The pipeline will automatically trigger a build and deploy the new code to the EC2 instance.

Successfully created a CodePipeline that automates the deployment process.

Browse your instance public-ip address, you can see final output of index.html

I have presented the easiest and standard way of configuring all the steps.

Hands-on experience of Code Commit - Code Build - Code Deploy & Pipeline is challenging, I have spent so many hours to make this work.

Hope you like my work! Thank you so much for reading!

ย