Auto Scaling 그룹의 크기 한도 업데이트
aws autoscaling update-auto-scaling-group \
--auto-scaling-group-name <AutoScalingGroupName> \
--min-size 2 \
--max-size 10
Shell
복사
인스턴스 등록
aws autoscaling attach-instances \
--instance-ids <InstanceID> \
--auto-scaling-group-name <AutoScalingGroupName>
Shell
복사
타겟 그룹 등록
aws autoscaling attach-load-balancer-target-groups \
--auto-scaling-group-name <AutoScalingGroupName> \
--target-group-arns <TargetGroupARN>
Shell
복사
로드밸런서 등록
aws autoscaling attach-load-balancers \
--load-balancer-names <LBName> \
--auto-scaling-group-name <AutoScalingGroupName>
Shell
복사
수명 주기 훅 생성
aws autoscaling put-lifecycle-hook \
--lifecycle-hook-name=k8s-hook \
--auto-scaling-group-name=$AUTO_SCALING_GROUP_NAME \
--lifecycle-transition=autoscaling:EC2_INSTANCE_TERMINATING \
--default-result=CONTINUE \
--heartbeat-timeout=300
Shell
복사

