스스로 구축하는 AWS 클라우드 인프라 - 기본편 005
1 분 소요
Auto Scaling으로 확장성 및 탄력성 구현하기
Application Load Balancer 생성
- EC2 서비스 선택
- Load Balancing >
Load Balancers
선택
Create Load Balancer
선택
- Application Load Balancer 의
Create
선택
- Name : lab-web-alb-asg 입력
- scheme : internet-facing 선택
- Availability Zones
- lab-vpc
ap-northeast-2a
체크
- lab-web-put1-2a 선택
ap-northeast-2c
체크
- lab-web-pub2-2c 선택
- Tags
- Key : Name
- Value : lab-web-alb-asg
Next: Configure Security Settings
선택
Next: Configure Security Groups
선택
Create a new security group
선택
- security group name : lab-web-alb-asg 입력
- Source : Custom 0.0.0.0/0 입력
Next: Configure Routing
선택
- Target group : New target group 선택
- Name : lab-web-alb-asg-tg 입력
Next: Register Targets
선택
- Instances에서 EC2 선택
Add to registered
선택
Next: Review
선택
Create
선택
Launch Configurations 설정
- EC2 서비스 선택
- Auto Scaling >
Launch Configuration
선택
Create launch configuration
선택
- Name : lab-web-lc
- AMI :
lweb-web-0000
설정
- Instance type : t2.micro 선택
- Advanced details
- User data
As text
선택
- Security groups
Select an existing security group
선택
lab-web-srv-sg
선택
- Key pair
seoul-lab-web-srv
선택
I acknowledge that...
체크
Create launch Configuration
선택
Auto Scaling Groups 설정
- EC2 서비스 선택
- Auto Scaling >
Auto Scaling Groups
선택
Create Auto Scaling group
선택
- Name : lab-web-asg
- Switch to launch template 선택
lab-web-lc
선택
Next
선택
- VPC
lab-vpc
선택
- Subnets
lab-web-pri1-2a
선택
lab-web-pri2-2c
선택
Next
선택
Enable load balancing
체크
Application Load Balancer or NEtwork Load Balancer
선택
- Target group :
lab-web-alb-asg-tg
선택
Next
선택
- Group size - optional
- Desired capacity : 2
- Minimum capacity : 2
- Maximum capacity : 4
Target tracking scaling policy
선택
- Metric type : Average CPU utilization
- Target value : 50
Next
선택
Next
선택
Add tag
선택
- Key : Name
- Value : asg
Next
선택
Create Auto Scaling Group
선택
참고