Questions tagged [aws-load-balancer]

0

votes
0

answer
2

Views

Cannot expose internet-facing NLB forwarding traffic to private instance to internet

I have configured a cloud with following configuration VPC with a public and private subnet in two availability zones. Public subnet has an internet gateway and private subnet has a NAT gateway configured An internet-facing Network Load Balancer allowing TCP traffic configured in both availability z...
bot
6

votes
2

answer
129

Views

Aws load balancer for Server Sent Events or Websockets

I'm trying to load balance a nodejs Server sent event backend and I need to know if there is a way to distribute the new connections to the instances with the least connected clients. The problem I have is when scaling up, the routing continues sending new connections to the already saturated instan...
ajaxon
1

votes
1

answer
235

Views

Aws Certificate manager api does not show imported certificates

While certificate manager UI shows my imported certificated with status 'issued' , when trying to use it from an ELB (application lb) I get: ' no certificates available ' (the POST request to the api returns with empty list) Also when I run aws acm list-certificates --max-items 10 I don't get the im...
alonisser
1

votes
1

answer
118

Views

AWS Load Balancer + NginX + EC2 AutoScaling Group

Currently, I dont have AWS Load Balancer setup yet. Request comes to nginx which then gets forwarded to an EC2. Now, I want to create an autoscaling group, and attach AWS load balancer to distribute the request that comes in. I am wondering if this is a good setup: Request -> AWS Load Balancer -> Ng...
user1955934
3

votes
1

answer
509

Views

Load balancer AWS configuration

I have some loadbalancer which works fine. It's configured like this. The app is just running on 80 and redirected by the webserver to 443 and has a route 53 above Now I tried totally the same but when I set my loadbalancer on the same values + wildcardcert I get: Updating load balancer named: xx fa...
DenCowboy
4

votes
4

answer
1.1k

Views

AWS CloudFormation Application Load Balancer - how to redirect HTTP listener to HTTPS listener?

I am trying to write a CloudFormation template for ALB, but got stuck on the point where I would like to redirect ALB's HTTP listener's traffic to HTTPS listener. Docs mention only forwarding/redirection to the target group. I am aware that it is achievable using the web interface (AWS Console), whi...
the0ffh
2

votes
1

answer
54

Views

aws load balancer for different instances and same ports

I have two EC2 instances running websites on port 80. Is it possible to use/configure 1 load balancer for these two instance/services? When I try to add a listener on existing load balancer, it says 'You may not have duplicate load balancer ports defined'. Or should I use 2 load balancer, one for e...
erup
3

votes
1

answer
503

Views

Why does an AWS application load balancer require two subnets?

When trying to create an application load balancer on aws (up until now I was using the classic ones just fine), I get the following message: At least two subnets must be specified Why would an ALB require me to specify two subnets ? Is there any way to create it and use it to LB between instances i...
George
3

votes
0

answer
75

Views

AWS Fargate ALB DNS not resolving

I've built the below infrastructure for use with AWS Fargate. The ECS manages containers in private subnets, with traffic routed to them through an internet-facing ALB via public subnets. Internet access to the containers in the private subnets is controlled via NAT Gateways. I've created a git r...
GreenyMcDuff
3

votes
1

answer
378

Views

How should I setup Traefik on ECS?

In Short I've managed to run Traefik locally and on AWS ECS but now I'm wondering how should I setup some sort of load balancing to make my two services with random IPs available to the public. My current setup on ECS [Internet] | [Load balancer on port 443 + ALB Security group on 443] | [Target gro...
Adit Saxena
2

votes
1

answer
339

Views

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 /service.php* In addition to this, I also want to route a specific...
Joey Stout
2

votes
1

answer
53

Views

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, from where does it take the credentials to create the...
karthikeayan
0

votes
0

answer
274

Views

AWS API gateway to load balancer on private subnet ecs connection for microservices

I have a VPC with public (With NAT gateway ) and private subnet. As part of designing microservices on aws platform, my goal is 1. Ec2 in private subnet 2. load balancer pointing to ec2 in private subnet 3. Api gateway pointing to load balancer, my problem is I can only use application load balancer...
Ernest
0

votes
1

answer
173

Views

AWS ALB + Django + Gunicorn +- Nginx?

I am building an environment in AWS to host a django application. I am trying to figure out if I should be using nginx as part of the build. I am listing a few different environments below for example/comparison purposes. All environments make use of an AWS ALB. ENV 1 ALB -> dockercontainer running...
James
0

votes
0

answer
8

Views

Elastic Beanstalk classic load balancer to application load balancer migration

So i followed the steps and created a new application load balancer and created DNS entry too as guided in official docs (https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/migrate-to-application-load-balancer.html), that's working fine. But when i deleted existing classic load balanc...
Fawad Badar
4

votes
4

answer
54

Views

AWS Loadbalancer Proxy for Nodejs

I have configured the load balancer to route the request to two of Ec2 Instance running a NodeJs server. I need to direct the request coming from both http (port 80) and https (port 443) to http (port 80) of the EC2 instances in NodeJs. I have uploaded the ssl certificate to AWS and configured the l...
Jeet