1
我是AWS的新手,我試圖使用Github上的AWS CodeDeploy進行部署。 爲此,我創建了名爲CodeDeployDemo
的實例並將角色和策略附加到實例。錯誤:AWS CodeDeploy中的HEALTH_CONSTRAINTS從Github部署到AWS CodeDeploy
Policy ARN arn:aws:iam::378939197253:policy/CE2CodeDeploy9
我的原則是:
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:Get*",
"s3:List*"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
,並附着的策略命名爲AmazonEC2RoleforAWSCodeDeploy
我也裝CodeDeploy代理我的Ubuntu一步一步如下:
$chmod 400 Code1.pem
$ssh -i "Code1.pem" [email protected]
$sudo apt-get update
$sudo apt-get install awscli
$sudo apt-get install ruby2.0
$cd /home/ubuntu
$sudo aws s3 cp s3://aws-codedeploy-us-east-1/latest/install . --region us-east-1
$sudo chmod +x ./install
$sudo ./install auto
然後我創建我的應用程序並從GitH部署UB到CodeDeploy使用CodeDeployDefault.OneAtATime
但在最後階段,它顯示了以下錯誤:
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.
(Error code: HEALTH_CONSTRAINTS)
注:當我部署running.I停止其他情況我只有一個實例運行。 請幫我找到解決方案。提前致謝。!!