Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [amazon-elb]

ELB is Amazon's managed Load Balancer service, used in conjunction with its EC2 virtual machine cloud hosting service.

1
vote
0answers
16 views

AWS S3 + Route53: Always redirect to www prefixed domain [duplicate]

I have a domain: example.com. I've created an A record for www.example.com with an alias targeting the load balancer’s DNS; this works just fine for www.example.com. Now, I want to redirect all ...
0
votes
0answers
3 views

Sharing an S3 data bucket between two instances of Gitlab CE Omnibus edition

The setup is as follows: One AWS ELB (elastic load balancer) Two AWS Ubuntu 18.04 servers, with Gitlab CE Omnibus edition The Gitlab CE omnibus edition, installs all the components needed on it (...
1
vote
1answer
53 views

Elastic Load Balancer Solution for multiple apps in different ec2 within same AZ

I have three application one frontend in react, loopback api app and another one Blockchain api. if i have to deploy three apps in three different EC2 in same AZ. What will be the best way to set up ...
4
votes
1answer
35 views

AWS Autoscaling Group won't honor five minute draining policy of the Target Group when scaling down

We have an Autoscaling Group in AWS that we manually scale up and down at the time being. Our ASG is currently attached to one Target Group, which has all of our prod servers in it. Before using the ...
2
votes
1answer
95 views

Limit public access to AWS ECS Fargate Service

I have a service on AWS ECS deployed using Fargate. This service uses a Network Load Balancer (NLB) to allow an Elastic IP to be associated with the service. This is not an http service and is using ...
0
votes
0answers
30 views

HAProxy (or any lb) - can you redirect based on path without SSL termination?

I'm looking to decouple the marketing (logged out) portion of a website from the main logged-in app, without having to use subdomains. I believe I can do this with ACLs in HAProxy, and potentially ...
0
votes
0answers
22 views

Why ELB might be queuing when backend is responding quickly?

I have an app running on an ec2 machine behind nginx and an elb which is seeing really slow TLS handshakes, but only when it's going through the elb. I ran an apache bench test that hits the public ...
0
votes
0answers
36 views

NGINX Proxy to a K8S ELB

I have a network that looks like this world(HTTPS) -> NGINX1 -> ELB -> NGINX Ingress (K8S) -> Some Service This design is because my ELB is internal within a VPC and so I would only like ...
1
vote
1answer
42 views

Issues making a connection secure using AWS EC2

We are hosting a website using the EC2 service on Amazon Web Services. The website is currently up and running but the issue is we are trying to make the connection secure by applying a certificate ...
2
votes
1answer
53 views

What path to use for redirect in AWS Application Load balancer?

I'm reading the documentation for setting up an HTTP to HTTPS redirect in the AWS Application Load Balancer but I cannot understand what to put as path expression (by the green arrow in the image): ...
2
votes
1answer
174 views

Access instance behind ELB through OpenVPN server

I want to redirect the traffic through an openvpn server only for some specific domains (dev.mydomain.com, admin.mydomain.com, jira.mydomain.com, etc) which are hosted on some ec2 machines and they ...
0
votes
1answer
148 views

Kube ingress and elb

I am running my (kops) kube cluster on AWS. The cluster is in the private subnet. I am not able to create an external (internet facing) load balancer because my cluster is in private space. Is there ...
1
vote
1answer
44 views

Setting up DNS routing to a network ELB

I have been trying to set up a network ELB on AWS so that traffic arriving on the configured elastic I.P gets forwarded to a healthy instance on the TCP port it is directed at. So incoming traffic for ...
1
vote
1answer
77 views

How to resolve AWS ELB redirection issue

We have deployed an application (Tomcat based) to an AWS EC2 instance. I am able to access the site directly and I can access it via the internal ELB. However I can't access it via the external ELB ...
1
vote
2answers
71 views

EC2 capped HTTPS upload

I have an application on 2 EC2 instances sitting behind an ELB. The ELB does HTTPS termination and then speaks HTTP to the instances. When uploading via HTTPS the transfer seems to be capped at ~ 10 ...
1
vote
1answer
105 views

robots.txt route requires a backslash when behind an Application Load Balancer

I have a rails site using an AWS ALB and all routes appear to work except one, robots.txt. I am getting the error "ERR_TOO_MANY_REDIRECTS", link to example: https://www.mamapedia.com/robots.txt ...
0
votes
0answers
41 views

Website is stalling for a few seconds on initial load

I have a website that consistently has a initial delay anywhere from 2 - 10 seconds. Using chrome dev tools I can see that the delay is marked Stalled under the Connection Start. See image: Other ...
0
votes
1answer
52 views

Allow access to site only by domain name [duplicate]

I have a site that uses an AWS Application load balancer, this load balancer has two dynamic public IPs. Behind the load balancer are a few EC2 instances that server a ruby on rails site using Apache ...
0
votes
1answer
172 views

Why should Cloudflare LB point to another AWS/GC/etc. LB?

I am aware Cloudflare has a security focus, but considering it also provides load balancing, why should I have it point to yet another load balancer e.g. AWS ELB?
0
votes
0answers
23 views

Pointing to ELB in Route53: A record (via ALIAS) vs CNAME

there is a weird problem with my application. A Classical Elastic Load Balancer sits in front of my application servers, which are EC2 instances. I point my sub-domain to the ELB in Route53. Case 1: ...
1
vote
1answer
78 views

EC2 cant send SES mail behind an ELB

We run a wiki in an EC2 that sits behind an Elastic Load Balancer, the EC2 does not have a public IP and traffic from internet is routed to the ELB through Route53. We noticed that the wiki was not ...
1
vote
0answers
43 views

AWS ELB returning its own private IP address?

We've had a security scan done on some of our public IP's, for PCI compliance, and it was found that requests to one of our public IP's resulted in responses containing a private IP address. The odd ...
1
vote
1answer
101 views

Multiple certs on an ELB listener. Nagios monitoring only checks the default one, regardless of host name

So I have two sites running, each behind a single Amazon ELB. For the purpose of this post (and my companies privacy), using these hostnames for each: example.com anotherexample.com Certs are ...
1
vote
1answer
44 views

AWS Elastic Load Balancer- two web applications in cluster in different autoscaled groups- one load balancer or two?

I'm wondering what the recommend practice would be in this scenario. If I have two web applications on the same VPC network (essentially in the same cluster) in two different autoscaled groups, would ...
3
votes
1answer
60 views

Is there any point in using more than one Application Load Balancer on AWS?

One can add to ALB multiple listeners and rules that can check for hostname and forward requests to appropriate target groups. So, I'm not sure what could be the point in using more than 1 Application ...
-2
votes
1answer
105 views

How to increase limit of concurrent EC2 instances running in a region?

I am trying to add three t2.small instances to single region, in this case us-east-2, but couldn't do so. I could edit this question to tell you the precise error message if requested. How do I ...
1
vote
1answer
729 views

Terminate Gzip compression at AWS ELB classic load balancer

We have a set of servers in AWS that are behind an ELB. We are trying to upload data to the server. We want to enable gzip, but the servers themselves use an obscure golang framework that does not ...
1
vote
0answers
252 views

AWS network load balancer's TCP listener on port 80 isn't forwarding HTTP/2 requests properly

I've got a GRPC server listening on port 8000 on an ec2 instance. If I put a network load balancer in front of it with a TCP listener on port 80, the HTTP/2 connection preface PRI * HTTP/2.0 isn't ...
0
votes
0answers
36 views

Web socket, stateful sessions, multiple clients accessing the same session, and AWS ELB

We have web sockets + rest, stateful socket sessions, multiple clients accessing the same stateful session, and AWS ELB. What is the best way to allow multiple clients to access the same session(s) ...
1
vote
0answers
353 views

ALB Connection Draining is always reaching the “Deregistration Delay”

I'm using ECS along with ALB to expose my containers to the internet. When I'm updating a container image (I'm using CloudFormation to update the tasks and services), the target group set the ...
1
vote
2answers
1k views

Cannot get websocket connection working with ec2 + application load balancer

I have an aws application load balancer with an https listener on port 9999, forwarding to a group on port 9999 with an ec2-instance being the target. If I run my websocket server with the host name ...
1
vote
1answer
164 views

Determine load balancer health check timeout

How do you determine reasonable health check timeouts for load balancers? My application is failing load balancer health checks. I'm using the default health check timeout of 5 seconds, but I've ...
0
votes
1answer
823 views

Nginx Proxy to AWS ELB not passing HTTPS protocol to Backend Instances

this is my first ever question, so please go easy on me! I'm trying to set up an Nginx proxy server to auto-generate SSL certificates using OpenResty/Lua and LetsEncrypt, within a multi-tenant SAAS ...
0
votes
0answers
30 views

Removing and restoring an AWS ELB when needed?

I have a fairly common (and functioning) Opsworks stack with an ELB, auto-scaling app servers, and a database. Trouble is, 99% of the time I just need one app server and don't need the ELB, yet I'm ...
0
votes
1answer
38 views

Is it safe to have a DNS record pointing to an unused AWS ELB instance?

Where I work, we have many subdomains of our main domain pointing to ELB instances (with CNAME records) that are no longer in use (like my-loadbalancer-1234567890.us-west-2.elb.amazonaws.com). I ...
0
votes
0answers
695 views

How to health check Squid server with ELB?

I wanted to have an HA forward proxy solution using Squid, and I am trying to use the Squid servers behind ELB solution on page 41. However, my forward proxy service is a service meant to forwarding ...
0
votes
1answer
277 views

AWS Network ELB vs security groups

Decided to move a couple of internal LBs from classic to network ELB. And I have noticed that NetELB does not accept traffic within the scope of those rules which have as source another security group ...
0
votes
0answers
265 views

AWS ELB and IIS 10: 503 Service Unavailable

I'm running IIS 10 on a Windows Server 2016 EC2 instance that sits behind an AWS ELB. I've loaded a custom (signed) SSL Certificate on the ELB. When I attempt to load sites without https, they're ...
1
vote
1answer
49 views

Can I use TLS with the domain name automatically assigned by an ELB?

When setting up an ELB, a subdomain is automatically provisioned (something like some-junk-here.us-west-2.elb.amazonaws.com). For my use-case this ugly domain is fine, and it works for raw HTTP and ...
2
votes
1answer
624 views

AWS Application ELB sometimes responds 502 without calling the backend

We have the following setup: An AWS Application ELB has a target group of 4 EC2 instances. On each of the EC2 instances, there is an Apache2 which forwards to a Tomcat. It works brilliantly. Except ...
1
vote
0answers
138 views

AWS - ECS with ELB not working, instance IP works though

I've set up an ECS cluster with a single container, with an ELB to serve the traffic to it. The ELB listener is HTTPS/443, and the host listener is HTTP/8080. I.e. when you hit the URL it's HTTPS but ...
0
votes
0answers
97 views

Any way to use AWS ELB with Sucuri

Is there any way to use AWS ELB using Sucuri WAF solution? as my website needs security by Sucuri, and its proved to be best till now. but its one of the big weaknesses of Sucuri that it only supports ...
1
vote
1answer
178 views

How to know whether an AWS Elastic Load Balancer is used?

I have an active ELB in my AWS account as well as EC2, VPC, RDS etc. I'm trying to understand whether this ELB is used or connected to something before deleting it. Any idea of what should I look for?...
0
votes
2answers
399 views

Installing / using Amazon free SSL cert on EC2 instance with vhost setup

I have a single EC2 instance (amazon linux) behind an ELB. I have configured up the free Amazon SSL certificate but I'm now wondering if i need to install that cert on my server as i did with my old ...
2
votes
1answer
303 views

Does TCP Passthrough mode give better latency performance than HTTP listeners

If I have an application looks like the following: Client <--> ELB <--> EC2 Would the E2E latency possibly be lower if I set up ELB as TCP passthrough mode than I make it as HTTP listener? ...
0
votes
2answers
64 views

EC2 multiple instances fixed IP

I am new to AWS and I have a question. I want to host a website on two EC2 instances. From what I read, if I stop the EC2 instance the public IP will change. In my case, Route 53 should route traffic ...
0
votes
1answer
821 views

Whether AWS ALB can route to different URLs within the same instance (not container based)?

I am planning to host 3 URLs on one Ec2 instance(linux and not container based) and do path based routing. Can you please help to find out whether ALB supports multiple URLs within the same instance. ...
1
vote
3answers
1k views

ELB with SSL pass through to either nginx or haproxy. Which is suited to handle more certs?

So I plan on having a ELB with SSL passthrough to either servers running haproxy or nginx. I will be hosting potentially thousands of lets-encrypt certs. Is either nginx or haproxy better at ...
0
votes
1answer
221 views

AWS Load Balancer times out

I created a classic loadbalancer on AWS with two EC2 instances running a simple flask application. The security group on the ELB is set to allow all inbound/outbound. The security groups for the EC2 ...
1
vote
0answers
184 views

Amazon AWS WebSocket Load Balancing Scale-In

We are in the process of developing a WebSocket application that will run on the same application servers that serve our APIs, which are all within a target group of a new Amazon Application Load ...