Questions tagged [elastic-load-balancer]

Use this tag for questions related to the Elastic Load Balancer, used to automatically distributes incoming application traffic across multiple Amazon EC2 instances.

Usually accompanies this tag, so you are encouraged to use it too, if applicable.

331 questions
3
votes
2 answers

Path-based routing to external resource with AWS Application Load-Balancer (ALB)

I have a working domain, x.y, which is tied to an EC2 instance on a VPC. I want a path on that domain, x.y/z, to be routed to an external, non-AWS (IPv4*) microservice. Can this be done with ALB? I have followed Use Path-Based Routing with Your…
3
votes
1 answer

Where should I point my custom domain to environment URL or LoadBalancer?

I have my custom domain xxx.com.pl I would like to run a service on Elastic Beanstalk. How should I configure my domain. Should I use my Elastic Load Balancer DNS: awseb-e-k-AWSEBLoa-xxx.eu-central-1.elb.amazonaws.com or environment…
3
votes
2 answers

Connection errors when attempting dask.distributed cluster on AWS ECS with Load Balancer

We're trying to start a dask cluster using ECS on AWS. Our current setup: Two services - a dask-scheduler service and a dask-worker service, each with a task definition. Each service has one task (in the future the dask-worker task can scale…
Maximilian
  • 7,512
  • 3
  • 50
  • 63
3
votes
1 answer

How to self-deploy web applications running in AWS EC2 Spot Windows instances?

My ASP.Net site runs as farm of Windows EC2 web servers. Due to a recent traffic surge, I switched to Spot instances to control costs. Spot instances are created from an AMI when hourly rates are below a set rate. The web servers do not store any…
2
votes
1 answer

How does "type: LoadBalancer" creates external Load Balancer in Kubernetes?

How does Kubernetes knows what external cloud provider on it is running? Is there any specific service running in Master which finds out if the Kubernetes Cluster running in AWS or Google Cloud? Even if it is able to find out it is AWS or Google,…
2
votes
1 answer

ACM certificate - SSL_ERROR_BAD_CERT_DOMAIN

We got a certificate from ACM for our domain say example.com. On the application load balancer I deployed this and created a HTTPS listener with forwarding to my target group. The target group is an EC2 instances in a ASG. Now the issue is when I…
2
votes
0 answers

WebSocket connection failed - ERR_CERT_COMMON_NAME_INVALID

I have a mobile app served with Cloudfront and a backend server on elastic beanstalk and I want to use websockets to allow to two to communicate. Using just http, the websockets work successfully when using the ws prefix. However, if I need to use…
William
  • 75
  • 1
  • 9
2
votes
0 answers

put nginx behind aws ELB?

Currently my server littlehome.kr points to an ec2 nginx and I'm changing DNS entry so that www.littlehome.kr points to the ELB. I want multiple nginx (target) behind ELB. (That's the point of having load balancer anyway.) Should all of my…
eugene
  • 39,839
  • 68
  • 255
  • 489
2
votes
1 answer

Query string in AWS Application Load Balancer

I want to route everything going to service.php to be routed to a specific target group, even if it has a query string or not. Do I need to define it with a wildcard or is just defining /service.php sufficient enough? /service.php vs…
2
votes
0 answers

Why am I getting this SSL error on an AWS CLI command?

I am using the following command to get information on the machines behind my load balancer: aws --region us-east-1 elb describe-load-balancers --load-balancer-names myLoadBalancer --output text It works flawlessly when I run it from the command…
J. Tate
  • 163
  • 1
  • 10
2
votes
0 answers

AWS Application load balancer stops to send traffic when new instance is added

I have a problem with autoscaling with AWS Application Load Balancer. I'm running my Jmeter tests and discovered that whenever new instance is added to autoscaling group (that is when it becomes healthy and ALB starts to route traffic to it), then…
2
votes
2 answers

Amazon AWS Load balancer EC2 instances address ip range

My website is running behind an AWS Classic Load Balancer. It has some scaling policies and it launches some new EC2 instances when it has to. Is it possible to have the range of public IP addresses that will be used for the EC2 instances when they…
Djagu
  • 163
  • 1
  • 12
2
votes
2 answers

django posts receive CSRF verification failed after switching to load balancer

I have a working login template that does a post and looks like:
{% csrf_token %}
{{form.email}}
Atma
  • 29,141
  • 56
  • 198
  • 299
2
votes
1 answer

Redirect to public ELB from AWS ApiGateway

Im trying to redirect a call from api gateway to a public elb in AWS. The ELB is open to the world but I cannot make it work going by the API Gateway. API GateWayConfiguration I get this response from the postman when I call the events operation { …
2
votes
1 answer

x-forwarded-for header not passed by AWS Application Load Balancer

My tomcat application is not receiving X-Forwarded-For header from AWS Application load balancer. The load balancer is configured to offload SSL and connects with the tomcat application over HTTP. I am receiving other headers such as…