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

demandé il y a 2 mois130 vues
1 réponse
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
EXPERT
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions