Skip to content

aws-samples/hostname-as-target-for-elastic-load-balancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Elastic Load Balancer: Using hostname as a target

For more information, refer to blog: Hostname-as-Target for Newtork Load Balancers

Elastic Load Balancing automatically distributes incoming application traffic across multiple targets, such as Amazon EC2 instances, containers, IP addresses, and Lambda functions. It can handle the varying load of your application traffic in a single Availability Zone or across multiple Availability Zones. Elastic Load Balancing offers three types of load balancers that all feature the high availability, automatic scaling, and robust security necessary to make your applications fault tolerant:

  • Application Load Balancer: Best suited for load balancing of HTTP and HTTPS traffic and provides advanced request routing targeted at the delivery of modern application architectures, including microservices and containers. Operates at Layer 7 of Open System Interconnection (OSI) model.

  • Network Load Balancer: Best suited for load balancing of Transmission Control Protocol (TCP), User Datagram Protocol (UDP) and Transport Layer Security (TLS) traffic where extreme performance is required. Operates at Layer 4 of OSI model.

  • Classic Load Balancer: Provides basic load balancing across multiple Amazon EC2 instances and operates at both the request level and connection level. Classic Load Balancer is intended for applications that were built within the EC2-Classic network. Today applications are architected on EC2-VPC network and use either Application Load Balancer or Network Load Balancer.

Elastic Load Balancer (ELB), as describe above, do no support Fully Qualified Domain Name (FQDN) as targets. This repository describes solution that uses AWS Lambda (Lambda) to add FQDN as target for Elastic Load Balancer.

You create an ELB with target group of type ip. Once ELB is created, you will deploy this Lambda. Lambda periodically resolves the target FQDN and registers/deregisters IP addresses as targets from a target group.

For more information, refer to blog: Hostname-as-Target for Newtork Load Balancers

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages