SAGARFIVE

Projects

4.2 Running the Pipeline

Step 1 -Check the pipeline : Open the pipeline : Pipeline already started working & shows you the status

Step 2 – Click on CodeDeploy on Deploy stage : Shows you status

Step 3 – Click on Deployments tab  : Here you can see First time it failed, we need to check logs at ec2 instance for troubleshooting

Step 4 – Login to EC2 to see logs  :

Select instance > connect > connect

Step 6 – Read logs : Run the commands one by one

πŸ“cd /var/log/aws/codedeploy-agent
πŸ“ls
πŸ“cat codedeploy-agent.log

Now we can see logs at terminals

Once restart the codedeploy-agent :

sudo service codedeploy-agent restart

Get back to CodePipeline and click on Release change

Now you will see success at this time

Step 7 – Checking CICD : changing the index.html

Update the index.html at CodeCommit repository

You can see it downloaded code from codebuild repo source and deployed to Deployment group server by using commit changes

Step 8 – Open the public IP on browser :  CodeDeploy is Deployed our code to server

Step 9 – CICD Auto Deployment : When you refresh the page, we can see the Thanks for visiting in the footer, means when we commit the changes Codepipeline automatically deploy the changes to server

It’s Done ! Creating CICD pipeline using AWS Developers Tools like CodeCommit , CodeDeploy and CodePipeline.

Thank you !

Share

Facebook
LinkedIn
WhatsApp
Pinterest
Telegram
Email

Share