Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [amazon-alb]

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
32 views

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 ...
0
votes
0answers
11 views

Setting up AWS ALB for Grafana [closed]

I wanted to know if someone can point me in the right direction as to how I can set up an ALB for grafana on AWS ec2? I have grafana running as a docker container on the ec2 instance and is accessible ...
0
votes
0answers
8 views

ALB Gateway time-out 504

I deployed an application to EKS. I'm using Ingress controller with ALB. The healthcheck of this load-balancer has the status Request time-out. When I visit the load-balancer DNS, the web application ...
1
vote
0answers
38 views

Istio : HTTPS Traffic converted to HTTP with port set as 443

Bug description We have setup an istio over on eks cluster & a java app is hosted in it. The pod has been created along with service with type ClusterIP We have created Virtual Service, Gateway &...
0
votes
0answers
47 views

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 ...
0
votes
0answers
13 views

What is the difference between Sessions in ElasticBeanstalk and Stickiness option in Target Groups in AWS

I am using Elastic Beanstalk to deploy my code and I am using Application load balancer here.When I want to set sticky session, I found two options. 1) Sessions option(Elastic Beanstalk-->my ...
0
votes
0answers
18 views

AWS Application Load Balancer with https upstreams not working

Anyone help with a problem i am having with trying to configure my AWS Application Load Balancer to use an HTTPS upstream on a IIS server. Everything works fine when I set the target group to hit the ...
0
votes
0answers
40 views

Nginx proxy_pass failing when keeping EC2 behind aws ALB, 502 status error

I have 2 instances one for backend(URL: be.domain.com) and another for frontend(URL: fe.domain.com) pointed through Backend-TG and frontend-TG respectively. AWS application load balancer used to ...
2
votes
1answer
68 views

Is there a CloudWatch metric that corresponds to ALB data transfer usage/cost?

I have an Application Load Balancer whose data transfer cost I want to monitor. In Cost Explorer, I can filter on usage type "DataTransfer-Out-Bytes", and see how many GB of data it is sending, and ...
0
votes
0answers
19 views

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.
1
vote
1answer
55 views

How to assign the same elastic IP to a NAT gateway and an ALB?

The architectural diagram shown below is taken from an AWS blog titled Task Networking in AWS Fargate. The blog was posted in January 2018. The description that comes with the image states that: ...
0
votes
1answer
54 views

application load balancer fails to upload large file

I have a bit of a problem. I have a php larvel application that sits on a ec2 linux instance behind an application load balancer. When I try to upload a large file the process fails with no error ...
-1
votes
1answer
51 views

AWS Application load balancer in switching between two frontends

I have two angular6 frontends, one running on port 4000, the second running on 4100. Do a Dockerized push to ECR and create two task definitions ... create cluster and then 2 services of these two ...
1
vote
1answer
34 views

Should I share an AWS application load balancer between applications?

I have two unrelated applications ( they are not two microservices of the same application, but two separate services ) running on Amazon Ec2 or Fargate. Should I share an application loadbalancer ...
0
votes
0answers
90 views

aws network load balancer as internal facing or application load balancer with microservices as targets

I am using AWS ECS for microservice deployment. I have 3 microservices. I have configured ALB with path forwarding to request respective microservice. But ALB has to be public in this case to use with ...
1
vote
1answer
503 views

Why is my autoscaling group instance unhealthy?

I'm noticing a very strange issue with an AWS auto-scaling group. Instances are being reported (incorrectly) as being unhealthy. The instances are then being terminated and replaced unnecessarily. ...
1
vote
1answer
433 views

HTTP/2 for ALB with EKS on AWS

I'm experimenting with AWS EKS and have created the following setup: EKS cluster with a single service/pod/node AWS ALB ingress controller ALB I try to configure the ALB to: create access logs ...
0
votes
0answers
85 views

Dynamic Lambda alias with ALB

Is it possible to invoke a lambda alias based on the request using application load balancer? I would like to take part of the hostname, or part of the path, if either would work mytenant---some-...
0
votes
0answers
750 views

AWS Application Load Balancer 502 Bad Gateway

I am using AWS ECS Fargate and have an application load balancer to forward all the connections to the correct instance. I did already manage to get up a cluster and a service up and running ...
4
votes
2answers
2k views

AWS Fargate service: scale to zero?

I've recently migrated a small web application to AWS using Fargate and Aurora Serverless. The application doesn't get much traffic so my goal is to save cost while no one is using it. Aurora ...
0
votes
0answers
28 views

AWS Application Load Balancer not working

I have a EC2 cluster with just one EC2 instance, where two services are running: api1, listening at port 8080 api2, listening at port 9090 If I make requests against EC2 instance and those ports, ...
0
votes
1answer
174 views

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 ...
5
votes
1answer
610 views

AWS ALB resolves to 2 IPs. What are they?

I have set up an AWS ALB for my application. The ALB is connected to AWS ECS cluster which has 2 instances. The 2 instances are in private subnets. When I resolve the IP of the ALB DNS name, I get 2 ...
2
votes
1answer
1k views

AWSApplication load balancer - custom headers

I have question regarding AWS ALB. Does anybody knows if it is possible to modify (specifically ADD) custom headers to requests? Something like proxy_set_header in nginx http://nginx.org/en/docs/http/...
1
vote
1answer
298 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
1answer
121 views

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 ...
1
vote
0answers
289 views

Nginx epoll_wait() issue under load test with Load Balancer

I'm using JMeter CLI to load tests our micro services (Nginx+PHP-FPM+Laravel). Micro services are all under an AWS Application Load Balancer which performs a health-check. For that micro service, ...
0
votes
0answers
38 views

SSL implemation

So, i know we can enable SSL on the AWS Application load balancers. But the set up here is, the connections terminates on an on-prem f5 loadbalancer. The traffic is then routed to an internal(private) ...
4
votes
1answer
82 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 ...
1
vote
1answer
352 views

Cloudwatch event for changes in ALB target groups

I have a lambda function that copies the targets (IP addresses in this case) from one target group to another (deleting any in the second target group that don't appear in the first). This gives us 2 ...
1
vote
1answer
881 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
3k 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 ...
0
votes
1answer
1k views

Restricting access to a specific domain on AWS

Our current setup is ALB -> Target Group -> EC2 instances At the moment it's possible to access the EC2 servers behind the load balancer using the IP address of the ALB, the DNS Name (e.g. ...
3
votes
1answer
796 views

AWS Application Load Balancer (ALB) in single az

We have an environment setup in AWS and would like to have an ALB with targets in only one AZ and that only appears on IP address in the same AZ. This is required because of some routing rules that we ...
0
votes
2answers
61 views

How to find out request count to each instance behind an ALB in aws?

I have 50-60 aws instances running behind an ALB in AWS. I can get the total request count in the cloudwatch monitoring section, but is there anyway I can get to know how many requests are actually ...
0
votes
1answer
267 views

503 ALB health check HAProxy

I have a HAProxy behind Amazon ALB (Application Load Balancer) http/80 health check is ok, but https/443 gives me 503, even though the site is available & ok Here's what I see in HAProxy log: 4/...
0
votes
1answer
1k 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. ...
0
votes
1answer
125 views

HAProxy - Proxy to sites behind an internal ALB

I currently have an internal ALB (Not accessible to the world) with some microservices running. I now want the world to access certain microservices. I would like to place a HAProxy cluster in front ...
3
votes
1answer
2k views

AWS ALB Connection Draining not Closing Connections after Deregistration Delay

I have three instances configured as targets in an ALB. Connection draining is disabled (deregistration delay set to 0 seconds). Sticky sessions are enabled for 5 minutes. I get stuck to one web ...
4
votes
1answer
6k views

AWS Application Load Balancer vs Network Load Balancer

I am trying to understand what are the key differences are between ALB (Application Load Balancer) and NLB (Network Load Balancer). I understand that ALB is at layer 7 on the OSI model -- this means ...
2
votes
2answers
2k views

AWS: How to redirect HTTP to HTTPS on App Load Balancer?

I have a number of IIS web servers behind an App Load Balancer (ALB). The web servers all have self-signed SSL certificate installed and redirect from HTTP to HTTPS using URL rewrite module properly ...
1
vote
1answer
2k views

Nginx container health-check for AWS-ALB

I need to have a health-check path for ALB setup that points to a server which has docker container Nginx. I do not have access inside the EC2 server to add a file there. I can just add something in ...
0
votes
2answers
3k views

How to block loadbalancer forwarding to a specific path?

I have set up ALB loadbalancer. I want to prevent forwarding request towards a specific path like not to go to mydomain.com/admin/ The current Listeners set up look like below: 1 Arn ...
2
votes
1answer
1k views

How do I determine the Container ID so that Terraform can attach it to an ALB target group?

I've used Terraform to create a VPC, subnets, ECS instances, routing and a task definition which I am able to run via the AWS console. That gives me a few instances of my small web app running in ...
1
vote
0answers
656 views

Configuring WAF + ALB to Prevent SQL Injection

I'm trying to configure an Amazon ALB (Application Load Balancer, not "classic" ELB) to use Web Application Firewall (WAF) to reject https requests that contain potential XSS or SQL Injection payloads....
5
votes
1answer
435 views

ECS Stopped Task not Releasing Port

I have an ECS cluster with ELB. Last night I saw that a task was stuck in restarting loop. From the service Events log, it said: "service xxxxx was unable to place a task because no container ...