Questions tagged [aws-load-balancer]

1

votes
1

answer
46

Views

amazon load balancer for lambda

I am new to use aws. Normally, I use load balance like bottom with 2 servers. For L4 Load balancing, there are more than 2 servers But ALB - Lambda is not I think I am curious about ALB - Lambda relationship Is it 1:1? not like L4 switch? or VPCs stand for the server? And I want to know benefit to u...
USER
1

votes
3

answer
72

Views

AWS Static IP to Load Balancer?

Is it possible to assign a static IP to an AWS load balancer without the need to move your NS records to Route 53? I basically just want to create an A record from my domain to point to the ELB.
Anton Swanevelder
1

votes
0

answer
469

Views

client request body is buffered to a temporary file

I am using nginx as a load balancer I keep seeing the messages above. I keep uping the client_body_buffer_size, proxy_buffer_size and proxy_buffers but it doesn't seem to make a difference. What could be happening here?
Nidhi Sen
1

votes
0

answer
121

Views

Error:- HTTP ERROR 408 on AWS

Error: - This page isn’t working if the problem continues, contact the site owner. HTTP ERROR 408 Backed: TWO IIS Web-server and AWS loadbalancer We have deployed the same site on IIS webserver both the servers are placed behind the AWS classic load balancer. We have installed the SSL using let...
Mr IIS
1

votes
1

answer
36

Views

HTTPS Secured works only on home page not the next page

I am deploying a spring boot webapplication in AWS EC2 instance on port 80 and the home page is displayed as Secured When I click on the link like user login or admin login the browser shows it as Not Secured.What should I do to make my whole application secured. Below is my code which I am using fr...
Mr Ajay
1

votes
0

answer
104

Views

502 badgateway nginx ALB redirect http to https

I have an AWS application load balancer in front of two nginx instances. The application load balancer listens to port 80 and 443. What I want to do is redirect all http traffic on port 80 to https on 443. I have created two target group where group1 is nginx1 and it has the two instance and that gr...
Ahmed
1

votes
0

answer
156

Views

socket.io 400 bad request cloudfront

I am working on a web-app which uses socket.io for real time chat purpose. web-app is developed in MEAN stack. my front End build is hosted on S3 and powered by cloudfront. and the back end is on EC2. Now everything works fine,my APIs are redirected to the EC2 properly as cloudfront cannot handle th...
Siddhant Shah
1

votes
0

answer
507

Views

Kubernetes Service not accessible on AWS-EKS

I created a simple EKS cluster on aws as described in https://github.com/terraform-providers/terraform-provider-aws/tree/master/examples/eks-getting-started. I this cluster I created an nginx deployment and a service of type Loadbalancer as described below. The configuration works locally on minikub...
christian
1

votes
1

answer
301

Views

500 error trying to authenticate via AWS Application load balancer and Cognito

I am trying to setup Authentication for some certain routes using AWS internet-facing Application load balancer. I've done all the steps from the official AWS documentation, and also using this one: https://www.thorntech.com/2018/09/user-authentication-alb-cognito/ I was testing via load balancer's...
Georgij
1

votes
0

answer
27

Views

AWS CloudFormation Stack creation failure due to issue with CFN-INIT script

I have created 2 templates - One for creating VPC and related items and another template to create a 2 tier web application using exported resources from first template. I am using Auto-scaling group to create instances in Private subnet and is attach to a web facing Load balancer in the public Sub...
rp123409
1

votes
0

answer
33

Views

Issue setting up SSL certificates for traefik controller on AWS Kubernetes

I am deploying a web application (set of inter-communicating node servers) on kubernetes. I use Traefik controller, as load balancer and also internal communication in the cluster. I purchased the domain name through AWS and set it up via simple load balancer through route 53. Its pretty much works...
AMOL MISHRA
0

votes
0

answer
4

Views

with ELB attached to ec2, health check failed on HTTP ping, but succeeded with TCP ping

I was building backend for a simple app. It was with nginx-uwsgi-djangorest-api in AWS EC2. Because I needed to send the requests with https, I added elb load balancer to my ec2 instance, which is having HTTPS inbounds requests and HTTP outbounds. ELB had to health-check the model. At first, I had '...
rokrokss
1

votes
2

answer
221

Views

Is it possible to do an aws in place code deploy with zero downtime?

Is it possible to achieve zero downtime deployments with in place deployment? I know that in the in deployment group description (for in place deployment) we have this: Updates the instances in the deployment group with the latest application revision. During a deployment, each instance will be brie...
abbood
1

votes
2

answer
95

Views

Microservice running inside docker container(on EC2 instance) is not reaching AWS ALB

I am trying to add AWS Application load balancer in front of Microservices(Running on EC2 node inside VPC and public subnet). Those are running inside docker container. I noticed that, If microservice is running on directly on EC2 instance. It able to communicate with ALB. When started microservice...
Sky
1

votes
1

answer
140

Views

Terraform: Wait for classic load balancer's A record

I often create classic load balancers with Terraform. The TF outputs of these projects should include the (current) IP address of the loadbalancers. To accomplish this I have the following in my code: data 'dns_a_record_set' 'lb_dns_a' { host = '${aws_elb.myelb.dns_name}' } output 'load_balancer_ip...
user1129682
1

votes
1

answer
36

Views

How to route to two different AWS applications on the same domain with different URLs using Applicaiton Load Balancer?

I have a web app (Node.js on Elastic Beanstalk) already serving at example.com. I have a WordPress blog that I want to serve at example.com/blog. I want to setup AWS Load Balancer to route requests at /blog to my WordPress server and all other requests at / to my web-app. How do I do it using AWS L...
Emad Ehsan
1

votes
1

answer
0

Views

NodeJS TLS/TCP server in need of an external firewall

Problem: I have an AWS EC2 instance running FreeBSD. In there, I'm running a NodeJS TLS/TCP server. I'd like to create a set of rules (in my NodeJS application) to be able to individually block IP addresses programmatically based on a few logical conditions. I'd like to run an external (not on the...
Nactus
1

votes
1

answer
17

Views

How to add a target to a Network Load Balancer in CloudFormation

I've got some CloudFormation for a Network Load Balancer. PrivateNetworkLoadBalancerSG: Type: AWS::EC2::SecurityGroup Properties: GroupDescription: Access to the internal network load balancer VpcId: !Ref 'VPC' PrivateNetworkLoadBalancerIngressFromECS: Type: AWS::EC2::SecurityGroupIngress Properties...
rich
1

votes
1

answer
27

Views

How to configure AWS ELB in a replace of NGiNX server & it's settings?

I would like to know, how can we completely migrate from NGiNX to AWS ELB including SSL(AWS certificate) ? I have following NGiNX configuration for one of my domain(for example, example.com) server { listen 80; server_name *.example.com; root /home/ubuntu/angularApp; index index.html index.htm; l...
vishal gajera
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
264

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
0

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