Questions tagged [aws-elb]

Amazon Web Services Elastic Load Balancer (aws-elb) is a service offered by aws to automatically distribute incoming network traffic across multiple targets (EC2 instances or specific ports).

190 questions
1
vote
0 answers

Redirect port 4173 to 80

I have a React JS application running on an EC2 Linux VM. The app is accessible only through 4173 port. So, I can access the app using URL:4173. But I want to get rid of this. How can I use target group and an ELB to redirect port 80 to 4173? I…
1
vote
1 answer

Terraform application load balancer argument is not expected here

I currently work on an AWS architecture that looks like this : NLB -> ALB -> API Gateway -> Lambda When I deploy my architecture, the Preserve host header attribute of the ALB is set to false. I want it set to true. As from Terraform doc…
1
vote
0 answers

How to manage pointing custom domains for whitelabelled SAAS application to the same ec2 instance?

We are running a SAAS application that provides support for custom domains. We had been managing this by adding HTTPS listener for each domain at AWS Application Load Balancer and adding a corresponding certificate for the said domain. We are facing…
1
vote
0 answers

How TCP Load-balancer and AWS ELB works?

I am bit puzzled about how TCP load balancer works, in particular AWS ELB. By looking at AWS ELB doc: For TCP traffic, the load balancer selects a target using a flow hash algorithm based on the protocol, source IP address, source port, destination…
toto'
  • 1,325
  • 1
  • 17
  • 36
1
vote
0 answers

aws elbv2 listener rules to support basic auth by returning fixed response with "WWW-Authenticate"

I am looking for setting up basic authentication mechanism using aws elb. It does support listener rules where in if specific header match then return fixed response however it looks like the fixed response is limited to headers ContentType…
1
vote
1 answer

Migration from AWS ELB to API Gateway over EKS

I would like to migrate from AWS ELB to API Gateway with an AWS EKS Cluster. Reasons: Cost savings, the number of requests is not too large, lower latency, caching, and other things. One problem: I will need to keep both running for while. That's…
Ricardo Cunha
  • 2,013
  • 6
  • 24
  • 42
1
vote
1 answer

NET::ERR_CERT_COMMON_NAME_INVALID error in AWS

I made server structure like picture below. I put same ssl in two different region. But still getting this error. I have no idea to solve this problem. Please help me....
1
vote
1 answer

Application Load Balancer in front of ApiGateway?

I am in the process of replacing nginx. Currently, my nginx instance routes traffic to an s3 bucket OR to apigateway (apigateway then routes traffic to different lambda functions). Originally, I was considering replacing the nginx routing with an…
1
vote
0 answers

Ingress Controller produces 502 Bad Gateway on every other request

I have a kubernetes ingress controller terminating my ssl with an ingress resource handling two routes: 1 my frontend SPA app, and the second backend api. Currently when I hit each frontend and backend service directly they perform flawlessly, but…
gutscdav000
  • 359
  • 1
  • 3
  • 14
1
vote
1 answer

AWS Api Gateway cannot rewrite path - 400 Bad Request error

I'm trying to set up an AWS API Gateway for something which was previously handled by an nginx reverse proxy. My endpoints are EC2 instances inside a VPC. I've already set it up so the gateway can access these instances. The previous nginx setup…
Anton
  • 61
  • 4
1
vote
1 answer

nginx keepalive timeout vs ELB idle timeout vs proxy_read_timeout

My request flow looks like Client -> AWS ELB -> Nginx -> Backend. The backend takes a long time to respond to some requests, so proxy_read_timeout is set to 5 min. However, nginx default keepAliveTimeout is 70 sec and AWS ELB idleTimeout is 6…
Haneef Ali
  • 15
  • 5
1
vote
1 answer

AWS ELB Application Load Balancer with production and failover

I'm struggling to get my AWS ELB Application Load Balancer working. I am trying to set up a 100/0 weighting to 2 different target groups, production, and failover. Only when production goes down, traffic must route to failover, in all other cases,…
1
vote
0 answers

AWS auto scaling group - codedeploy should run after userdata script in ec2 instance is completed

I have configured an auto scaling group using launch configuration with userdata script to install nodejs while launching the instance. And codedeploy application is configured for the auto scaling group to deploy an app from s3 bucket. when a new…
Vazid
  • 713
  • 1
  • 6
  • 19
1
vote
0 answers

AWS ALB returns 411 after ELB classic switch over

I have a new ALB that has requests logging as 411 or "Length Required" that were previously 200 OK when the requests went to an old ELB classic. The requests are on loop from the source in another VPC out of my control and haven't been changed.…
1
vote
1 answer

How can I register an ECS Service as a Network Load Balancer target on a non-default port?

I'm trying to deploy a horizontally scaling application consisting of multiple containers with a single reverse proxy in front to AWS ECS backed by EC2. For certain reasons I cannot use an Application Load Balancer, but want to use a Network Load…
m90
  • 11,434
  • 13
  • 62
  • 112