-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappspec.yml
More file actions
42 lines (38 loc) · 866 Bytes
/
appspec.yml
File metadata and controls
42 lines (38 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: 0.0
os: linux
files:
- source: app/app.jar
destination: /home/ec2-user/app
- source: scripts/
destination: /home/ec2-user/scripts
- source: systemd/
destination: /home/ec2-user/systemd
file_exists_behavior: OVERWRITE
permissions:
- object: /home/ec2-user/scripts
pattern: "*"
owner: ec2-user
group: ec2-user
mode: 755
- object: /home/ec2-user/app
pattern: "*"
owner: ec2-user
group: ec2-user
mode: 644
hooks:
BeforeInstall:
- location: scripts/before_install.sh
timeout: 600
runas: ec2-user
ApplicationStop:
- location: scripts/stop_app.sh
timeout: 300
runas: ec2-user
ApplicationStart:
- location: scripts/start_app.sh
timeout: 600
runas: ec2-user
ValidateService:
- location: scripts/validate.sh
timeout: 600
runas: ec2-user