CodeDeploy Errors-PHP application (Laravel with nginx)

0

Hello,

I am implementing the AWS CI-CD pipeline using PHP Laravel & Nginx applications.

I have my code in github repository, I am trying to deploy the application in a EC2 instance using code deploy. I installed php, apache, nginx, codedeploy agent on this server. IAM role added such as, EC2CodeDeploy for ec2 machine and CodeDeployRole for code deploy service. composer installed in ec2. Installed apps are all running. Even though after did all these things, I am getting an error, pipeline failed. The errors are:

  1. "The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems"
  2. CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server.

Please advice how to make successful deployment using this environment.

Thanks, Ragav

已提問 2 個月前檢視次數 131 次
1 個回答
0

Hello.

Depending on the EC2 OS, please check the CodeDeploy Agent log file described in the following document to see if any errors have occurred.
I think that if the CodeDeploy Agent was running, an error would be displayed in the log.
https://docs.aws.amazon.com/codedeploy/latest/userguide/deployments-view-logs.html

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南