A Cloud Guru - Certified Solutions Architect Associate - Elastic Load Balanacer

09 May 2018

Create an Instance

aws ec2 run-instances \
--image-id ami-xxx \
--count 1 \
--instance-type t2.micro \
--key-name xxx \
--security-group-ids sg-xxx \
--subnet-id subnet-xxx

Create an Elastic Load Balancer

aws elb create-load-balancer \
--load-balancer-name xxx \
--listeners "Protocol=HTTP,LoadBalancerPort=80,InstanceProtocol=HTTP,InstancePort=80" \
--subnets subnet-xxx \
--security-groups sg-xxx

ELB vs ALB

ELB