0

我試圖讓AWS雲信息與Ubuntu AMI上的AutoScalingRollingUpdate一起使用。我正在使用AWS名爲ELBGuidedAutoScalingRollingUpgrade.json的模板。AWS Cloudformation ELB健康檢查(verify_instance_health)不適用於Ubuntu

一般來說,Autoscaling組正在等待來自ELB後面的EC2實例的信號,當ELB將其標記爲InService時,Autoscaling組將繼續執行以下任務。

我可以得到CFN-HUP並在Ubuntu的運行,但是cfn-init.log了錯誤configSets,從CFN-init.log的消息是以下:

cfn-init.log 從AWS實例中的verify_instance_health代碼如下: verify_instance_health codes

的CFN-hup.log得到的錯誤消息:

Error: Could not find configuration at /etc/cfn

回答

1

確保您有偵聽器在要檢查的端口上運行。還要確保實例的安全組和防火牆上允許端口。如果運行狀況檢查程序配置爲通過http進行檢查,請確保實例的http偵聽程序以http響應代碼200作出響應。