02_load-balancer

command
v0.0.0-...-6d7316e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 3 Imported by: 0

README

Create security groups

A security group acts as a virtual firewall that controls the traffic for one or more instances.

When you launch an instance, you associate one or more security groups with the instance.

You add rules to each security group that allow traffic to or from its associated instances.

You can modify the rules for a security group at any time; the new rules are automatically applied to all instances that are associated with the security group. When we decide whether to allow traffic to reach an instance, we evaluate all the rules from all the security groups that are associated with the instance.

ELB (load balancer) security group

  1. add this rule
  • HTTP TCP 80 Anywhere
  1. copy Group ID

Web tier security group

  1. add these rules
  • HTTP TCP 80 Custom IP <load-balancer-sg Group ID>
  • SSH TCP 22 My IP
  1. copy Group ID
  2. add this rule
  • MySql TCP 3306 Custom IP <web-servers-sg Group ID>

Load balancer

  1. EC2 / Load balancers / Create load balancer
  • application or classic
  • name: web-elb
  • http & https
  • default VPC
  • add two subnets
  1. configure security groups
  • choose "load-balancer" security group which we just setup
  1. configure routing
  • target group: web-servers-tg1
  • ping path: /ping
  • allows us to define a "healthy" web server
  • load balancer will only forward to healthy web servers
  1. register targets
  2. create

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL