Day 53: Your CI/CD pipeline on AWS - Part 4 🚀 ☁

Pooja BhavaniPooja Bhavani
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.

Task-01 :

Create a Deployment group of Ec2 Instance.

  • Open the AWS Management Console and navigate to AWS CodeDeploy.

  • Click on "Create Deployment Group" and provide a name and description for the group.

  • Select the EC2 instances you want to include in the group and configure the deployment settings.

  • Define the deployment type, load balancer settings, and alarms for monitoring.

  • Save the deployment group configuration.

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

  • Go to the AWS Management Console and navigate to AWS CodePipeline.

  • Click on "Create pipeline" and provide a name and description for the pipeline.

  • Provide the Pipeline name and select to create a New service role and click on Next.

  • Configure the source stage by selecting CodeCommit as the source provider and specifying the repository and branch and click on Next.

  • Configure the build stage by selecting CodeBuild as the build provider and specifying the build project and click on Next.

  • Set up the deploy stage by selecting AWS CodeDeploy as the deploy provider and specifying the deployment group created earlier and click on Next.

  • Review the pipeline configuration and click on "Create pipeline" to create the CodePipeline.

  • CodePipeline will fetch the code from CodeCommit, build the code using CodeBuild and deploy the application in the EC2 instance specified in CodeDeploy.

  • Navigate to the public IP Address of the EC2 instance where the application has been deployed and verify the HTML website deployment works.

By following these steps, you can create a CodePipeline that integrates CodeCommit, CodeBuild, and CodeDeploy. This enables a seamless flow of your application code from source control to build and deployment on the EC2 instances in the deployment group.

0
Subscribe to my newsletter

Read articles from Pooja Bhavani directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Pooja Bhavani
Pooja Bhavani

Hi, I am Pooja Bhavani, an enthusiastic DevOps Engineer with a focus on deploying production-ready applications, infrastructure automation, cloud-native technologies. With hands-on experience across DevOps Tools and AWS Cloud, I thrive on making infrastructure scalable, secure, and efficient. My journey into DevOps has been fueled by curiosity and a passion for solving real-world challenges through automation, cloud architecture, and seamless deployments. I enjoy working on projects that push boundaries whether it's building resilient systems, optimizing CI/CD pipelines, or exploring emerging technologies like Amazon Q and GenAI. I'm currently diving deeper into platform engineering and GitOps workflows, and I often share practical tutorials, insights, and use cases from my projects and experiences. ✨ Let’s connect, collaborate, and grow together in this ever-evolving DevOps world. Open to opportunities, ideas, and conversations that drive impactful tech!