CodeDeploy 스크립트 추가

This commit is contained in:
2023-07-21 19:45:23 +09:00
parent ca875b5baa
commit 1b43baf12d
4 changed files with 48 additions and 2 deletions

18
appspec.yml Normal file
View File

@@ -0,0 +1,18 @@
version: 0.0
os: linux
files:
- source: /
destination: /home/ec2-user
overwrite: yes
hooks:
ApplicationStart:
- location: scripts/run_process.sh # ApplicationStart 단계에서 해당 파일을 실행해라
timeout: 60
runas: ec2-user
ApplicationStop:
- location: scripts/kill_process.sh # ApplicationStart 단계에서 해당 파일을 실행해라
timeout: 100
runas: ec2-user