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

feita há 2 meses131 visualizações
1 Resposta
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
ESPECIALISTA
respondido há 2 meses
profile picture
ESPECIALISTA
avaliado há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas