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ヶ月前130ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ