【发布时间】:2023-03-19 00:45:01
【问题描述】:
我正在尝试将应用程序从 s3 bucket 部署到 ec2 实例。我创建了一个具有所需 s3 权限的实例以及一个具有所需 ec2 权限的代码部署应用程序
当我尝试部署时,我得到了:
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. (Error code: HEALTH_CONSTRAINTS.
我进入 ec2 实例检查代码部署日志,这就是我得到的:
2018-08-18 20:52:11 INFO [codedeploy-agent(2704)]: On Premises config file does not exist or not readable
2018-08-18 20:52:11 ERROR [codedeploy-agent(2704)]: booting child: error during start or run: Errno::ENETUNREACH - Network is unreachable - connect(2) - /usr/share/ruby/net/http.rb:878:in `initialize'
我尝试更改权限,重新启动代码部署代理,创建一个全新的 codeDEploy 应用程序。似乎没有任何效果。
【问题讨论】:
标签: amazon-web-services aws-code-deploy