Skip to content

Commit cdf6596

Browse files
committed
[ci/#26]: AWS EB 설정
1 parent e059f5f commit cdf6596

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
files:
2+
"/sbin/appstart":
3+
mode: "000755"
4+
owner: webapp
5+
group: webapp
6+
content: |
7+
#!/usr/bin/env bash
8+
JAR_PATH=/var/app/current/application.jar
9+
10+
# run app
11+
killalljava
12+
java -Dfile.encoding=UTF-8 -Dspring.profiles.active=dev -jar $JAR_PATH
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
commands:
2+
set_time_zone:
3+
command: ln -f -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Resources:
2+
AWSEBV2LoadBalancerListener:
3+
Type: 'AWS::ElasticLoadBalancingV2::Listener'
4+
Properties:
5+
DefaultActions:
6+
- Type: redirect
7+
RedirectConfig:
8+
Protocol: HTTPS
9+
Port: '443'
10+
Host: '#{host}'
11+
Path: '/#{path}'
12+
Query: '#{query}'
13+
StatusCode: HTTP_301
14+
LoadBalancerArn:
15+
Ref: AWSEBV2LoadBalancer
16+
Port: 80
17+
Protocol: HTTP
18+
AWSEBV2LoadBalancerListener443:
19+
Type: 'AWS::ElasticLoadBalancingV2::Listener'
20+
Properties:
21+
Certificates:
22+
- CertificateArn: Replace with Certificate ARN
23+
DefaultActions:
24+
- Type: forward
25+
TargetGroupArn:
26+
Ref: AWSEBV2LoadBalancerTargetGroup
27+
LoadBalancerArn:
28+
Ref: AWSEBV2LoadBalancer
29+
Port: 443
30+
Protocol: HTTPS

0 commit comments

Comments
 (0)