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.
Create a CodePipeline that gets the code from CodeCommit, Builds the code using CodeBuild and deploys it to a Deployment Group.
Step 1: Create a Deployment Group of EC2 Instances
Navigate to the CodePipeline section in the AWS management console.
Provide the Pipeline name, let the service role default and click on Next.
Select the source provider, repository name, branch and detection options and click on Next.
Select Build Provider and click on Next.
Select Deploy Provider and click on Next.
Successfully created a CodePipeline that automates the deployment process.
Now go to the Public IP of your
EC2 Instance
and check the runningindex.html
file.
In summary, the outlined process establishes an efficient CI/CD pipeline using AWS services. By combining CodeCommit, CodeBuild, and CodeDeploy, developers can automate code integration, build processes, and deployments to EC2 instances. This streamlined workflow enhances development speed, ensures consistency, and reduces manual efforts. Leveraging AWS services enables quick identification and resolution of issues, fostering a reliable and agile software delivery lifecycle. Ultimately, this CI/CD solution empowers teams to deliver high-quality software with efficiency and confidence.