我正在尝试将应用程序从s3 bucket部署到ec2 instace中。我创建了具有所需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应用程序。似乎没有任何作用。