我有一个简单的测试Angular 应用程序.我正在学习AWS代码管道的教程,但在代码部署阶段失败了. Tutorial I am following My angular application GitHub link
代码生成成功.您可以在提供的GitHub链接中看到Buildspec.yml文件.但是,代码部署阶段失败,在BeForeBlockCommunications阶段出现以下错误.
CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server.
我知道这是一个与政策有关的问题.但是,我已经启用了对我的EC2计算机的完全访问.以下是当前启用的策略列表.我是不是漏掉了什么政策?
下面是我正在使用的appspec.yml文件.我在这份文件中也遗漏了什么吗??
version: 0.0
os: linux
files:
- source: /
destination: /var/www/html/
hooks:
BeforeInstall:
- location: scripts/remove_root_dir
timeout: 900
runas: root
ApplicationStart:
- location: scripts/install_dependencies
timeout: 300
runas: root
- location: scripts/start_server
timeout: 300
runas: root
ApplicationStop:
- location: scripts/stop_server
timeout: 300
runas: root