-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathappspec.yml
More file actions
20 lines (18 loc) ยท 963 Bytes
/
appspec.yml
File metadata and controls
20 lines (18 loc) ยท 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: 0.0
os: linux
# S3์ ์๋ zip ํ์ผ์ด EC2์ ๋ฐฐํฌ๋ ์์น๋ฅผ ์ง์
files:
- source: / # CodeDeploy์์ ์ ๋ฌํด ์ค ํ์ผ ์ค destination์ผ๋ก ์ด๋์ํฌ ๋์์ ๋ฃจํธ๋ก ์ง์ (์ ์ฒดํ์ผ)
destination: /home/ec2-user/action/ # source์์ ์ง์ ๋ ํ์ผ์ ๋ฐ์ ์์น, ์ดํ jar๋ฅผ ์คํํ๋ ๋ฑ์ destination์์ ์ฎ๊ธด ํ์ผ๋ค๋ก ์งํ
overwrite: yes
permissions: # CodeDeploy์์ EC2์๋ฒ๋ก ๋๊ฒจ์ค ํ์ผ๋ค์ ๋ชจ๋ ec2-user๊ถํ์ ๊ฐ๋๋ก ํฉ๋๋ค.
- object: /
pattern: "**"
owner: ec2-user
group: ec2-user
# ApplicationStart ๋จ๊ณ์์ deploy.sh๋ฅผ ์คํ์ํค๋๋ก ํฉ
hooks: # CodeDeploy๋ฐฐํฌ ๋จ๊ณ์์ ์คํํ ๋ช
๋ น์ด๋ฅผ ์ง์ ํฉ๋๋ค.
ApplicationStart: # deploy.sh๋ฅผ ec2-user๊ถํ์ผ๋ก ์คํํฉ๋๋ค.
- location: scripts/deploy.sh
timeout: 120 # ์คํฌ๋ฆฝํธ ์คํ 120์ด ์ด์ ์ํ๋๋ฉด ์คํจ๊ฐ ๋ฉ๋๋ค.
runas: ec2-user