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
25
votes
2 answers

Enabling HSTS in AWS ELB application load balacer

We like to enable HSTS to our IIS deployed web application. We have SSL terminating ELB Application load balancer. We have enabled the URL rewrite module in IIS and configured the x-Forward-Proto tag to decide and enable HSTS header in the response.…
Prasanna B R
  • 489
  • 2
  • 6
  • 12
25
votes
10 answers

AWS Elastic Load Balancing: Seeing extremely long initial connection time

For a couple of days, we often see an extremely long initial connection time (15s - 1.3 minutes) to our ELBs when making any request via ssl. Oddly, I was only able to observe this in Google Chrome (not Safari nor Firefox nor curl). It does not…
ahrzg
  • 288
  • 1
  • 3
  • 6
23
votes
2 answers

Elastic Load Balancer (ELB) and Route 53 in AWS

I'm new to AWS and just started learning it. Load Balancing is something that is common which we will use for load distribution when we have multiple servers. Here, when I learnt about Route 53 in AWS, it sounds similar to load balancing. Although…
Arun Palanisamy
  • 5,281
  • 6
  • 28
  • 53
23
votes
4 answers

Terraform how to get IP address of aws_lb

Question If there a way to get the assigned IP address of an aws_lb resource at the time aws_lb is created by Terraform? As in AWS documentation - NLB - To find the private IP addresses to whitelist, we can find out the IP address associated to…
mon
  • 18,789
  • 22
  • 112
  • 205
23
votes
2 answers

AWS Application Load Balancer transforms all headers to lower case

I've a REST API application running in two EC2 instance and was using AWS Classic Load Balancer for a long time. The clients of REST API rely on the response headers (e.g. such as Location). I know that HTTP headers are case-insensitive by…
vtor
  • 8,989
  • 7
  • 51
  • 67
23
votes
1 answer

AWS ELB -> Backend Server over HTTPS with Self-Signed Certificate

I already have HTTPS in place to terminate external HTTPS connections at my AWS ELB. I'm now attempting to secure my connections between my ELB and my backend NGINX servers on EC2 using HTTPS with a self-signed certificate. I've followed the…
jsears
  • 4,511
  • 2
  • 31
  • 36
23
votes
5 answers

Nginx: broken_header with proxy_protocol and ELB

I am trying to set up proxy_protocol in my nginx config. My server sits behind an AWS load balancer (ELB), and I have enabled Proxy Protocol on that for both ports 80 and 443. However, this is what I get when I hit my server: broken header: "��/�� …
Scott Hillman
  • 251
  • 1
  • 2
  • 4
23
votes
1 answer

nginx $scheme variable behind load balancer

Is it possible to force nginx $scheme value to "https" if nxinx is running behind load balancer? In my scenario Load balancer takes care of https communication with client and forwards requests to nginx as raw http. I know I can do something like…
svestka
  • 755
  • 1
  • 8
  • 13
22
votes
3 answers

HTTP2 over AWS ELB under TCP Mode

Does anyone have the experience using HTTP2 server behind AWS ELB running in TCP Mode? As I know, AWS ELB does not support HTTP2 now, however, by using TCP mode, it should pass the request to the backend server transparently. Does someone have the…
Kevingo Tsai
  • 629
  • 7
  • 21
21
votes
4 answers

AWS CloudFormation Application Load Balancer - how to redirect HTTP listener to HTTPS listener?

I am trying to write a CloudFormation template for ALB, but got stuck on the point where I would like to redirect ALB's HTTP listener's traffic to HTTPS listener. Docs mention only forwarding/redirection to the target group. I am aware that it is…
21
votes
4 answers

AWS:ELB health is failing or not available for all instances

Our ELB is intermittently failing health checks on instances and throws errors "Environment health has transitioned from Ok to Warning. 2 out of 2 instances are impacted. See instance health for details" and after a minute it throws "Environment…
Imran Sheikh
  • 341
  • 1
  • 2
  • 6
20
votes
3 answers

Why does an AWS application load balancer require two subnets?

When trying to create an application load balancer on aws (up until now I was using the classic ones just fine), I get the following message: At least two subnets must be specified Why would an ALB require me to specify two subnets ? Is there any…
George
  • 3,521
  • 4
  • 30
  • 75
20
votes
2 answers

AWS ACM wildcard ssl certificate not working on domain

I created a SSL certificate for my site using Amazon Certificate Manager. The certificate is for *.example.com. I have then attached this certificate to my ELB and have left the instance protocol as http. So SSL chain is only between the client and…
John
  • 483
  • 1
  • 5
  • 11
20
votes
3 answers

How to use *.pfx certificate for Amazon ELB SSL

I have cert.pfx file, I need to install to be used in Amazon Elastic Load Balancer. How can I do it?
snowindy
  • 3,117
  • 9
  • 40
  • 54
20
votes
2 answers

WebSockets: wss from client to Amazon AWS EC2 instance through ELB

How can I connect over ssl to a websocket served by GlassFish on an Amazon AWS EC2 instance through an ELB? I am using Tyrus 1.8.1 in GlassFish 4.1 b13 pre-release as my websocket implementation. Port 8080 is unsecured, and port 8181 is secured with…
XDR
  • 4,070
  • 3
  • 30
  • 54