Hosts failed error in AWS CodeDeploy

I am trying to configure AWS CodeDeploy for my PHP web application. I created the CodeDeploy application and deployment group in the AWS console. I created the necessary revision set with the appspec yaml file. The revision package is stored on Amazon S3.

When I click the “Deploy this revision” button on the AWS console, it gives me a “no hosts” error. I went through the Technical FAQ and could not find the answers. How can I resist this error?

UPDATE: Now I understand that this error is related to the number of Minimum Healthy Hosts. But still I can’t understand how AWS calculates the host’s health.

+4
source share
4 answers

, : " codedeploy ec2 "...

+2

. , . , . , .

, , , , " ".

, . - - , - , - , . - , - .

- , , - , . , VPC .

+1

, CodeDeploy EC2, .

1) codedeploy S3 ( )

PS> Read-S3Object -BucketName aws-codedeploy-eu-west-1 -Key latest/codedeploy-agent.msi -File c:\temp\codedeploy-agent.msi

2) codedeploy

cmd> c:\temp\codedeploy-agent.msi /quiet /l c:\temp\host-agent-install-log.txt

3)

PS> Start-Service -Name codedeployagent

AWS CodeDeploy: http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-run-agent.html#how-to-run-agent-install-windows

0

. , :

ntpdate-debian

centos, -

 ntpdate pool.ntp.org

codedeploy.

Now, if that does not solve your problem. First, make sure your problem is that the CodeDeploy agent is not registering. I had this problem before, and it was because one of my instances was in a failed state due to a failed deployment, so be sure to double check. (ELB status, tests, etc.)

Then you must enable logging for your CodeDeploy agent by setting log_aws_wire and verbose to true in / etc / codedeploy -agent / conf / codedeployagent.yml and then restart CodeDeploy. The tail of the magazines, and you should see the cause of your problems.

0
source

Source: https://habr.com/ru/post/1598221/


All Articles