Skip to main content

Elastic Load Balancer

An Elastic Load Balancer (ELB) automatically distributes incoming application traffic across multiple targets, such as Amazon EC2 instances, containers, and IP addresses, in one or more Availability Zones. This ensures the smooth flow of network traffic and provides a scalable system for your applications. For more detailed information, please visit the official AWS Elastic Load Balancer documentation.

Terrafrom Mappings:

  • aws_lb.arn
  • aws_lb.id

Supported Methods​

  • GET: Get an ELB by name
  • LIST: List all ELBs
  • SEARCH: Search for ELBs by ARN

elbv2-target-group​

The Elastic Load Balancer is related to the elbv2-target-group as it distributes incoming traffic to the registered targets within a target group. Each target group routes requests to one or more registered targets, such as EC2 instances, using the protocol and port number specified in your listener rule.

elbv2-listener​

The ELB uses elbv2-listener to check for connection requests from clients. The listener is configured with a protocol and port for connections from clients to the load balancer. The listener then forwards requests to one or more target groups based on the rules configured.

dns​

The ELB is assigned a Domain Name System (DNS) name, which clients can use to send requests to the load balancer. The DNS service resolves the DNS name to the IP address of the load balancer.

route53-hosted-zone​

Integrating an ELB with a route53-hosted-zone allows for mapping domain names to the load balancer’s DNS, enabling seamless access to applications hosted behind the ELB via user-friendly domain names.

ec2-vpc​

An ELB is deployed within an ec2-vpc, which provides the networking environment necessary for the communication between the load balancer and the registered targets. The ELB must be linked to a VPC to function.

ec2-subnet​

Within a VPC, the ELB is associated with ec2-subnets across different Availability Zones. This configuration ensures redundancy and fault tolerance, as traffic is distributed amongst targets in multiple subnets.

ec2-address​

Elastic Load Balancer can be related to an ec2-address when you use an Elastic IP address to assign a static IP address to your load balancer for IPv4.

ip​

Each Elastic Load Balancer is assigned a set of ip addresses. These IP addresses can be used by clients to connect to the service. The IP addresses help in the routing of incoming traffic to the load balancer.

ec2-security-group​

Security groups for an ELB control the traffic allowed to reach the load balancer. The ec2-security-group associated with the ELB defines the protocols and ports for incoming connections, ensuring secure access control.