On your journey of making a CI/CD pipeline on AWS with these tools, you completed AWS CodeCommit, CodeBuild & CodeDeploy.
Finish Off in style with AWS CodePipeline
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.
Congratulations on completing Day 53 of the challenge! Tomorrow, on Day 54, we will dive into a new topic: Infrastructure as Code (IaC) and Configuration Management. Discover how to provision and manage your AWS infrastructure using code, and learn about the benefits of automating configuration management. Stay tuned!
Happy Learning
Thanks For Reading! :)
-Sri Parthuππ₯