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