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

asked a month ago115 views
1 Answer
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
answered a month ago
profile picture
EXPERT
reviewed 22 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions