Elastic Load Balancer
Elastic Load Balancers distribute incoming traffic across multiple targets, improving the availability and scalability of applications. The βv2β API covers Application, Network and Gateway Load Balancers, each of which can automatically scale to meet demand and provide a single DNS endpoint for users. Full service behaviour and limits are documented in the AWS Elastic Load Balancing User Guide (https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/).
Terrafrom Mappings:
aws_lb.arnaws_lb.id
Supported Methodsβ
GET: Get an ELB by nameLIST: List all ELBsSEARCH: Search for ELBs by ARN
Possible Linksβ
elbv2-target-groupβ
The load balancer forwards requests to one or more target groups; each listener rule references a target group that contains the actual EC2 instances, IPs or Lambda functions receiving traffic.
elbv2-listenerβ
Listeners define the port and protocol that the load balancer accepts and contain the rules that map traffic to target groups; every load balancer has at least one listener.
dnsβ
ELBs are accessed via a DNS name (e.g., my-alb-123456.eu-west-1.elb.amazonaws.com). External DNS records resolve to the IPs managed by AWS behind this name.
route53-hosted-zoneβ
Route 53 alias or CNAME records are commonly created in a hosted zone to point a friendly domain name to the load balancerβs DNS name.
ec2-vpcβ
An ELB is deployed inside a specific VPC, inheriting its network boundaries and able to route traffic only within that VPC (except for internet-facing endpoints).
ec2-subnetβ
The load balancer is placed into one or more subnets; for high availability at least two subnets (usually across AZs) are required.
ec2-addressβ
Network Load Balancers can be allocated static Elastic IP addresses, one per subnet, providing fixed public IPs for the load balancer.
ipβ
Each Elastic IP (for NLB) or the dynamically allocated addresses (for ALB/Gateway LB) represent the underlying IP resources that the DNS name resolves to.
ec2-security-groupβ
Application and Gateway Load Balancers are associated with security groups which control the allowed inbound and outbound traffic to the load balancer endpoints.