Amazon Web Services supports three types of Load Balancers. An Application Load Balancer (ALB) functions at the application layer, the seventh layer of the Open Systems Interconnection (OSI) model.
Questions tagged [amazon-alb]
104 questions
1
vote
1 answer
Keycloak w/ EKS + ALB (401 after auth)
I’m currently trying to get Keycloak to run in EKS behind ALB and for the life of me, I can’t get it to work. I get the redirect to a login screen and after I log in - I instantly get presented with 401 Authorization required.
Infrastructure as…

iotanum
- 21
- 5
1
vote
5 answers
Easier way how to put AWS ALB behind Cloudfront with TLS?
I have this flow:
user => Cloudfront with TLS => ALB with TLS => ECS
I encrypted connection between Cloudfront and ALB.
Cloudfront has domain MAIN.DOMAIN.NET + TLS cert configured.
ALB has also domain WEB.DOMAIN.NET + TLS cert (it seems that for…

wtdmn
- 63
- 1
- 5
1
vote
0 answers
How to reduce the time it takes a request to pass from a ALB to the actual Fargate Server?
I have a webhook endpoint where our service provider send a payload which I have to respond to within 2 seconds. I've been getting way too many timeout errors from the service provider, meaning I wasn't able to respond within 2 seconds.
I did some…

Sahil
- 133
- 1
- 6
1
vote
1 answer
How to authorize only IP from a Fargate ECS service for MongoDB Atlas Cluster
I have an ECS Fargate service mapped to an Application Load Balancer on AWS. In this service, there are several task that are frequently killed and restart.
These tasks should be able to connect to a MongoDB Atlas cluster.
Which IP should I…

Howins
- 113
- 4
1
vote
0 answers
AWS ALB and HAProxy Keep-Alive header
Has any one come across this behavior?
AWS ALB is sending traffic to HaProxy.
HaProxy sets keep-alive header to 29 seconds.
Client connected to ALB does not see this header.
It can only see "Connection: keep-alive" header.
Basically, ALB is…

Sameer Naik
- 218
- 2
- 8
1
vote
0 answers
aws-load-balancer-controller annotations not working
I'm trying to automatically start an ALB in my EKS cluster by using the aws-load-balancer-controller
This is what the logs of my deployment look like:
$ kubectl logs -n kube-system deployment.apps/aws-load-balancer-controller
Found 2 pods, using…

E-Kami
- 123
- 1
- 6
1
vote
0 answers
Apache 502 bad gateway response when using AWS Application Load Balancer and Centos 7
I am new in Linux/centos, I configured a Laravel application in my AWS EC2 Instance (Centos 7),The application was working fine but after that I configured a Application Load Balancer to use path based routing, the application is working and…

Hasnain
- 11
- 2
1
vote
1 answer
AWS ALB SSL/TLS offloading security
AWS ALBs allow one to configure an SSL/TLS certificate for encrypting traffic between the client and the LB. Traffic between the LB and the target can be protected with a certificate, but target certificates are not validated... as outlined here:…

JTW
- 111
- 3
1
vote
0 answers
Persistent 502s from AWS ALB
This is our architecture:
Cloudflare -> ALB 1 -> Nginx API Gateway -> ALB 2 -> (Nginx Sidecar -> Application)
The application and the sidecar are on the same box and communicate via unix domain socket.
We see a steady but small stream of HTTP 502s…

septerr
- 141
- 4
0
votes
2 answers
Database behind AWS load balancer?
I put a load balancer in front of example.com and I believe all traffic for *.example.com goes to the load balancer
My database is named db.example.com and listening at 5432
Application Load balancer has port setting for 80 and 443 only..
How do I…

eugene
- 139
- 1
- 9
0
votes
1 answer
How to route to Cloudfront+s3 and rest to ALB in Route53?
The project has a domain name foobar.com pointing to a legacy system, hosting and serving mainly static files. The project got more complex over time and in AWS ALB certain /routes are pointed to particularly isolated micro-applications (for…

punkbit
- 221
- 1
- 2
- 8
0
votes
0 answers
AWS Application Load Balancer returns '412 Precondition Failed' when a conditional header is present
I have an ALB with a Lambda as a target. The lambda is a simple Python one and the only thing it does, is a return of a hardcoded dict. The response is a valid response for ALB and includes Etag header:
import json
def lambda_handler(event,…

Pawel
- 1
- 1
0
votes
0 answers
Can a target group have more than one asg in aws?
I want a target group for an alb to be able to add a second asg. This is that so it can slowly replace the current asg.
0
votes
1 answer
Can we make AWS ALB forward request from a single user to the same target always?
I'm new to AWS ALB and I have set up an AWS Application Load Balancer along with ECS cluster with 2 EC2 instances. The entire architecture works fine. But later I find that the API calls from a single user are going to different targets (EC2…

Neron Joseph
- 287
- 1
- 5
- 10
0
votes
1 answer
How do we configure an ALB with Elastic IP's to only resolve to our FQD
We have a situation where we have a website, www.mamapedia.com which is accessible both by the ALB address and the Elastic IP's assigned to the ALB at any given time.
This is problematic and is causing problems. We have identified a site such that…

Jacob Peebles
- 3
- 1