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.

95 questions
1
vote
1 answer

403 when using Terraform to attach Lambda Function to Target Group w/ ALB

I'm able to create Instances, Target Groups, and ALBs just fine with Terraform, but am getting stuck when trying to use Lambda Functions. It looks like the Lambda function gets created OK along with an ALB and a Target Group, but fails on the step…
John Heyer
  • 181
  • 2
  • 8
1
vote
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
  • 111
  • 3
1
vote
1 answer

On and off requests take very long on my system

EDITED: I have and issue in my AWS system. Every few requests takes almost exactly 130 seconds to answer. When I say a few I mean 5 to 25 or so. Normally if you cancel the slow request and send again it just answers fast. I also noticed this happens…
wti
  • 138
  • 8
1
vote
0 answers

Persistent 502s from AWS ALB

This is our architecture: Cloudflare -> ALB 1 -> Nginx API Gateway -> ALB 2 -> (Nginx Sidecar -> Application) The application and the sidecar are on the same box and communicate via unix domain socket. We see a steady but small stream of HTTP 502s…
septerr
  • 141
  • 4
0
votes
2 answers

Database behind AWS load balancer?

I put a load balancer in front of example.com and I believe all traffic for *.example.com goes to the load balancer My database is named db.example.com and listening at 5432 Application Load balancer has port setting for 80 and 443 only.. How do I…
eugene
  • 139
  • 1
  • 9
0
votes
1 answer

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 particularly isolated micro-applications (for…
punkbit
  • 221
  • 1
  • 2
  • 7
0
votes
0 answers

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 header: import json def lambda_handler(event,…
0
votes
0 answers

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.
0
votes
1 answer

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 user are going to different targets (EC2…
Neron Joseph
  • 277
  • 4
  • 10
0
votes
1 answer

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 causing problems. We have identified a site such that…
0
votes
0 answers

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) application load balancer in AWS. Can i still…
OK999
  • 113
  • 4
0
votes
2 answers

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 being directed to each instances from the ALB in…
0
votes
1 answer

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/26/2018 3:19:47 AMApr 26 00:19:47 localhost…
0
votes
1 answer

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 of my internal ALB that proxies the requests…
SnIpY
  • 123
  • 5
0
votes
0 answers

terraform: Configuring load-balancer to use dynamic port of ECS task/service in AWS

This is sort-of a general question for how dynamic port assignments are supposed to work, though my specific context is trying to figure-out if there is a natural way for a target-group to know the dynamically-assigned port of the service without…
Dustin Oprea
  • 510
  • 1
  • 7
  • 19