Questions tagged [aws-alb]
93 questions
4
votes
1 answer
AWS ELB when target (backend) applications runs on multiple ports of the same EC2
I have 2 instances of the same web application running on port 8080 and 8081. I need to load balance using ALB/CLB. This used to be a simple thing in good old apache web server.The requirement is to load balance the instances below
Instance 1 Web…

Sujith Babu
- 339
- 6
- 19
4
votes
1 answer
keep-alive TTL in Go Transport never closes connections
I have an application hosted on AWS which is running on Production creates an http server as mentioned in the below sample code. There is default timeout of 180 seconds in the go library. So, ideally connections not used should be closed after 180…

Naresh
- 5,073
- 12
- 67
- 124
4
votes
3 answers
Serve Binary responses via ALB and Lambda Integration
AWS just announced a new feature Invoking Lambda functions using Application Loadbalancers. This is great news as we don't have to configure all those mappings for API gateway just to get a simple response from my lambda function.
We have an image…

Umer
- 250
- 4
- 14
3
votes
1 answer
Terraform: AWS Target Group unable to add multiple targets
I am trying to create ALB and Web Servers by using modules. While Web Servers and ALB gets created, I am unable to add the web servers as targets to the target group. The first one gets attached while the 2nd one fails.
Error: Error registering…

Amitabh Ghosh
- 212
- 2
- 15
3
votes
3 answers
AWS ALB Health Check 404
I have an ALB with 2 targets in the target group. However my health check aren't working properly. Both are showing
"Health checks failed with these codes: [404]"
My settings for the health check path…

user2570937
- 802
- 3
- 17
- 34
3
votes
2 answers
AWS EKS ALB ingress controller is not working, and HOST is not populating
I am trying to implement a simple "hello world" on eks with alb Ingress controller.
My goal is to ..
Create a cluster
Deploy an Ingress to access using ELB
Following things have been done
Created EKS cluster
added "alb ingress…

ajoy sinha
- 1,156
- 4
- 14
- 30
3
votes
1 answer
Ingress does not update ALB
I have ALB on AWS running on EKS cluster. I'm trying to apply change in Ingress resource on routing so it points to different backend.
The only difference in Ingresses below is spec for backend.
Why is update not working? How to update routing on…

Andrija
- 14,037
- 18
- 60
- 87
3
votes
1 answer
How to apply ip based rate limiting in AWS serverless
Let's say I am running a serverless REST API in AWS. I therefore have my REST API implemented in an AWS lambda and the lambda is exposed over HTTP using an API Gateway or an Application Load Balancer. Then, I want to protect my API from potential…

mabead
- 2,171
- 2
- 27
- 42
3
votes
1 answer
Adding domain name to ECS application with AWS ELB
I have an application which is running on an AWS ECS cluster which has 2 instances. I'm using EC2 instance type for ECS. I also have an application load balancer attached to this ECS cluster which uses dynamic port mapping. Right now, the…

Neron Joseph
- 1,675
- 22
- 39
3
votes
0 answers
AWS Application load balancer - allowing requests only from API Gateway
How can I restrict AWS Application Load Balancer to only receive HTTP \ HTTPS requests which originated from AWS API Gateway ?
I'm aware that API Gateway can generate and send client side certificate to the backend as described…

Uria W
- 159
- 1
- 6
2
votes
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
- 3,546
- 8
- 35
- 49
2
votes
1 answer
AWS ALB of a Go Lambda always returns "502 Bad Gateway"
I have an AWS Lambda implemented with Go lang. The Lambda is triggered by an ALB. When I invoke the ALB from outside it always returns this:
502 Bad Gateway
502 Bad…

Robert Reiz
- 4,243
- 2
- 30
- 43
2
votes
0 answers
Amazon Application Load Balancer wss to ws forwarding problem
There is a target group in AWS Fargate cluster that manages node.js applications inside Docker containers. Every application serves web socket connections (web socket, not socket.io!).
There is a non-encrypted connection (HTTP / ws) behind the…

Oleg Shaykhutdinov
- 21
- 4
2
votes
1 answer
Keycloak OIDC and AWS ALBs
Is there a way to get Keycloak to work as an OIDC Provider for AWS ALBs?
I have tried and tried and I am just getting stuck with 500 Internal Server.
I created a new confidential client and provided the ALB with the clientID and secret as well as…

con_rad
- 29
- 6
2
votes
2 answers
AWS Load Balancer allow certain ip addresses on URL path
Currently I have an application set up on AWS using application load balancer with 2 EC2 in target group:
DNS -> AWS-ALB -> EC2(2)
I need help allowing only certain IP addresses on the application URL context path.
For eg:
www.abc.com should be…

varun
- 135
- 3
- 12