
## EC2 #1 생성
## User data 등록
#!/bin/bash
yum install httpd -y
service httpd start
mkdir /var/www/html/hello
echo "Hello World !!" /var/www/html/hello/index.html

## EC2 #2 생성
## User data 등록

## EC2 2개 생성 완료 (HELLO / GOODBYE)

## 타겟그룹 생성 (Goodbye / Hello 둘다 생성)
- Interval 30초 --> 6초로 변경




## ALB 생성
- View/edit rules 클릭 --> Insert Rule 클릭 --> 경로기반 선택






## 각 타겟그룹에 EC2 등록


## ALB 접속 테스트

- ALB Address/hello/index.html

- ALB Address/goodbye/index.html

## Rule 참고
https://www.youtube.com/watch?v=0KIRNTbWf-4

## 참고용

https://www.youtube.com/watch?v=Yly-34nLPss