Questions tagged [amazon-elb]

Amazon Elastic Load Balancing (ELB) automatically distributes incoming application traffic across multiple Amazon EC2 instances.

Amazon Elastic Load Balancing automatically distributes incoming application traffic across multiple Amazon EC2 instances. It enables you to achieve even greater fault tolerance in your applications, seamlessly providing the amount of load balancing capacity needed in response to incoming application traffic. Elastic Load Balancing detects unhealthy instances within a pool and automatically reroutes traffic to healthy instances until the unhealthy instances have been restored. Customers can enable Elastic Load Balancing within a single Availability Zone or across multiple zones for even more consistent application performance. Elastic Load Balancing can also be used in an Amazon Virtual Private Cloud (“VPC”) to distribute traffic between application tiers.

See more at the product page.

2698 questions
123
votes
12 answers

Redirecting EC2 Elastic Load Balancer from HTTP to HTTPS

I want to redirect all the HTTP request to https request on ELB. I have two EC2 instances. I am using nginx for the server. I have tried a rewriting the nginx conf files without any success. I would love some advice on it.
Amit Badheka
  • 2,677
  • 4
  • 19
  • 29
80
votes
5 answers

Amazon ELB in VPC

We're using Amazon EC2, and we want to put an ELB (load balancer) to 2 instances on a private subnet. If we just add the private subnet to the ELB, it will not get any connections, if we attach both subnets to the ELB then it can access the…
Kevin Willock
  • 1,912
  • 1
  • 13
  • 16
75
votes
2 answers

Amazon ELB for EC2 instances in private subnet in VPC

I'm using Amazon EC2, and I want to put an internet-facing ELB (load balancer) to 2 instances on a private subnet. I am using VPC with public and private subnets. If I just add the private subnet to the ELB, it will not get any connections. If I…
Manish Singh
  • 5,848
  • 4
  • 43
  • 31
60
votes
7 answers

How to fix WordPress HTTPS issues when behind an Amazon Load Balancer?

I've had this issue before. When running WordPress (or other PHP scripts) behind Amazon's EC2 Load Balancer, the scripts do not realize they are being ran on the https:// protocol and results in issues such as endless redirect loops, and HTTPS…
A.B. Carroll
  • 2,404
  • 2
  • 17
  • 19
60
votes
7 answers

Does it make sense to have an Amazon Elastic Load Balancer with just one EC2 instance?

My question is simple. Does it make sense to have an Amazon Elastic Load Balancer (ELB) with just one EC2 instance? If I understood right, ELB will switch traffic between EC2 instances. However, I have just one EC2 instance. So, does it make…
Rober
  • 5,868
  • 17
  • 58
  • 110
56
votes
6 answers

What's the target group port for, when using Application Load Balancer + EC2 Container Service

I'm trying to setup an ALB which listens on port 443, load balancing to ECS Docker containers on random ports, lets say I have 2 container instances of the same task definition, listening on port 30000 and 30001. When I try to create a target group…
mash
  • 4,204
  • 4
  • 32
  • 34
56
votes
1 answer

What does the dualstack prefix mean in AWS ELB?

When I add an ELB as Alias Target in AWS Route 53, it automatically adds the dualstack prefix to my ELB DNS. What does this represent? When I try dig, both returns the same endpoints. Note: This is an internal load balancer.
Nithin Satheesan
  • 1,546
  • 3
  • 17
  • 30
55
votes
6 answers

Assigning Static IP Address to AWS Load Balancer

How can I assign a static IP address to a ELB. Seems like I cannot. Some articles online asks to create a Route 53 record but this requires changing CNAME of domain which also redirect email traffic. I just want to change A record not CNAME. Some…
Narayan Prusty
  • 2,501
  • 3
  • 22
  • 41
55
votes
6 answers

How do you put up a maintenance page for AWS when your instances are behind an ELB?

How do you put up a maintenance page in AWS when you want to deploy new versions of your application behind an ELB? We want to have the ELB route traffic to the maintenance instance while the new auto-scaled instances are coming up, and only "flip…
BestPractices
  • 12,738
  • 29
  • 96
  • 140
51
votes
1 answer

AWS classic load balancer listener isn't created, then disapears

I am trying to add an HTTPS listener to my EBS classic load balancer. I used the CLI upload-certificate tool to upload my cert (using the GUI never resulted in the cert showing up as an option on the load balancer form. No errors, logs, events). I…
49
votes
14 answers

Why does Elastic Load Balancing report 'Out of Service'?

I am trying to set up Elastic Load Balancing (ELB) in AWS to split the requests between multiple instances. I have created several images of my webserver based on the same AMI, and I am able to ssh into each individually and access the site via each…
jkeesh
  • 3,289
  • 3
  • 29
  • 42
47
votes
3 answers

Can ELB redirect request depending on the URL?

I am trying to set up my application server behind the Amazon Elastic Load Balancer. I am thinking to have one server dedicated for old version, and all other server dedicated for new version. I am thinking to implement this using version id in path…
subhashlg26
  • 993
  • 1
  • 11
  • 25
45
votes
3 answers

Application Load Balancers vs API Gateway

AWS comes with a service called Application Load Balancer and it could be a trigger to a lambda function. The way to call such a lambda function is by sending an HTTP/HTTPS request to ALB. Now my question is how this is any different from using the…
Mehran
  • 15,593
  • 27
  • 122
  • 221
45
votes
5 answers

AWS: "Unable to parse certificate. Please ensure the certificate is in PEM format."

I am trying to update a wildcard certificate for EC2 instances on AWS. The service these servers belong to consists of a single server and a set of servers behind AWS ELB. The certificate has been successfully updated and verified on the single…
marekful
  • 14,986
  • 6
  • 37
  • 59
41
votes
3 answers

NLB Target Group health checks are out of control

I have a Network Load Balancer and an associated Target Group that is configured to do health checks on the EC2 instances. The problem is that I am seeing a very high number of health check requests; multiple every second. The default interval…
Miles
  • 1,682
  • 1
  • 13
  • 22
1
2 3
99 100