아예 CodeDeploy 실행 시작도 안될 때
sudo service codedeploy-agent restart
version: 0.0
os: linux
files:
- source: /
destination: /home/ec2-user/go/src
description: /home/ec2-user/go/src
file_exists_behavior: OVERWRITE
permissions:
- object: /
pattern: "**"
owner: ec2-user
group: ec2-user
hooks:
BeforeInstall:
- location: scripts/before_install.sh
runas: ec2-user
AfterInstall:
- location: scripts/after_install.sh
runas: ec2-user
environment:
variables:
GOROOT: $PATH:/usr/local/go/bin:$GOROOT