Skip to content

Instantly share code, notes, and snippets.

@brijesh-deb
Last active December 23, 2017 14:56
Show Gist options
  • Save brijesh-deb/32d9ee1ac536df36b8f9823ae7adc40d to your computer and use it in GitHub Desktop.
Save brijesh-deb/32d9ee1ac536df36b8f9823ae7adc40d to your computer and use it in GitHub Desktop.
#AWS #LoadBalancer

Create AWS Elastic Load Balancer (ELB)

  • EC2 dashboard> load balancers > Create load balancers
  • Provide Name, vdc
  • Create an internal load balancer: unchecked
  • Listener Configuration
    • Load balancer protocol: http
    • Load balancer port:80
    • Instance Protocol: http
    • Instance port: 3000
  • Select subnets from available ones
  • Assign security groups > create new security group
    • Port range: 80
    • Source: Anywhere
  • Configure health check
    • Ping protocol: http
    • Ping port: 3000
    • Ping path: /
  • Add EC2 instance
    • Select EC2 instances for load balancing OR
    • Leave this section blank if used with a Auto Scaling Group
  • Review and create
  • Enable stickiness in LB
    • Note: LB will use a cookie to keep track of which user should be sent to which EC2 instance.
    • Select LB
    • Description> Port Configuration > Stickiness > Enable load balancer generated cookie stickiness & 86400 sec (1 day)
  • Note: once created Description tab for ELB mentions DNS name which can be used to access from outside.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment