Questions tagged [aws-application-load-balancer]

1004 questions
6
votes
3 answers

Which metrics should I use for an alarm HTTPCode_Target_5XX_Count or HTTPCode_ELB_5XX_Count?

I have an ALB with a single target group (this is an istio-ingress gateway), I want to capture a scenario where any request routed to this target group returns 5XX code. Per docs: HTTPCode_ELB_5XX_Count: The number of HTTP 5XX server error codes…
pbn
  • 2,406
  • 2
  • 26
  • 39
6
votes
1 answer

ECS containers securely routed via API Gateway not returning but health check on containers is good

Okay so this is going to be a long one, but I want to make sure I explain. I am trying to do a proof of concept that we can deploy micro services via ECS that are exposed using API Gateway so we can leverage the lambda authorisers and cognito. To…
6
votes
1 answer

Terraform, AWS and importing existing SSL certificates

I'm working in a project where I have gotten a situation which I can't get the path to succeed. Truth is I'm running terraform code through a pipeline, this code depends on a bunch of certificates that have been added through AWS web console, so I…
6
votes
2 answers

Can AWS ALB forward the traffic to another ALB

We have two Nginx running and first Nginx receives the traffic after checking some rules forwarding the traffic to another Nginx, now we are moving this to AWS ALB, but not found any option for forwarding traffic from one ALB to another ALB. Please…
6
votes
2 answers

Windows authentication does not work behind AWS Application Load Balancer

I have an ASP .NET WCF service web that uses Windows Authentication. After deploying the web service to the server (Windows Server 2012) and enabling Windows Authentication on IIS, I visit the page using localhost going directly to the server. It…
6
votes
2 answers

Application load balancer session cookie's expiration is extremely high

This may sound like a very trivial doubt, but I need some help here. I have set up Application load balancer with OIDC authentication. After logging into my application, using chrome developer tool I looked into the client application cookie. Found…
6
votes
0 answers

Sending AWS ALB traffic from one account to another

I am trying to set up a multi-account organisation on AWS, where the root account acts as a landing zone, and the other accounts are split between our deployment environments (staging/production). One of my challenges is that we have our SSL…
6
votes
2 answers

Health checks failed with these codes: [502]

I'd like to mention that I'm not an experienced tech person, but I've been trying to learn AWS through an online course and I'm stuck at a particular point: I've created two target groups made up of two EC2 linux instances each, and some simple code…
6
votes
2 answers

How to Fix CloudFormation error "Provided Load Balancers may not be valid. Please ensure they exist and try again

when I try to create Autoscale group with Application load balancer with the following cloudformation yml file LoadBalancer: Type: AWS::ElasticLoadBalancingV2::LoadBalancer Properties: Type: application Subnets: …
6
votes
1 answer

Redirect HTTP to HTTPS for Application Loadbalancer in Elastic Beanstalk in Cloudformation

I'm using an ALB in my Elastic Beanstalk environment. It works (on 80 and 443) but I want to implement a redirect rule in the cloudformation template. I was able to create the rule in the console: If PATH is / Redirect to…
6
votes
2 answers

I get an ALB Lambda error - 502 Bad Gateway

I've been grappling with alb 2 lambda 502 bad gateway errors. In my ALB access logs, it shows a 'LambdaInvalidResponse' which i'm guessing is because my lambda returns an invalid response. This should be easily fixed but i can't for the life of me…
5
votes
3 answers

uvicorn shutting down after 1-2 minutes on AWS Fargate

I have a deployment of FastAPI 0.81.0 + uvicorn 0.18.3 using Python 3.10.1 on AWS Fargate with an Application Load Balancer. The server runs (as expected) indefinitely in my local Docker, however on AWS the application always shuts down after 1-2…
5
votes
2 answers

Error ListenerRule with identifier Priority 10 is currently in use on listener with 9 rules currently

I have the following (minimal test) cloudformation template: AWSTemplateFormatVersion: 2010-09-09 Description: Test template Resources: TestTargetGroupListener: Type: AWS::ElasticLoadBalancingV2::ListenerRule Properties: Actions: …
5
votes
2 answers

Communication between Cloudfront and ALB resulting in a 502 error

I'm getting Cloudfront 502 errors in the communication to the ALB origin, which results in: CloudFront wasn't able to connect to the origin. The Cloudfront logs show me OriginConnectError. I've gone back and forth regarding what the issue could be,…
5
votes
1 answer

Does an AWS Application Load Balancer always terminate HTTPS connections (or is it configurable)?

We use an Application Load Balancer behind which we have an nginx server. Our client has asked us to implement mTLS but I don't think that works if the ALB terminates TLS connections. I know that our ALB currently swaps out the self-signed…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
1 2
3
66 67