Questions tagged [aws-alb]

93 questions
64
votes
16 answers

AWS ECS error: Task failed ELB health checks in Target group

I am using cloud formation template to build the infrastructure (ECS fargate cluster). Template executed successfully and stack has been created successfully. However, task has failed with the following error: Task failed ELB health checks in…
user2315104
  • 2,378
  • 7
  • 35
  • 54
13
votes
1 answer

Error aws_alb_target_group has "count" set, its attributes must be accessed on specific instances

I am using Terraform v0.12.26 and set up and aws_alb_target_group as: resource "aws_alb_target_group" "my-group" { count = "${length(local.target_groups)}" name = "${var.namespace}-my-group-${ element(local.target_groups, count.index) }" …
mrc
  • 2,845
  • 8
  • 39
  • 73
12
votes
2 answers

ALB is not propagating response headers correctly

I have a lambda target behind an ALB. My lambda is a python lambda. def handler(event, context): response = { "statusCode": 200, "statusDescription": "200 OK", "isBase64Encoded": False, "headers": { "Content-Type":…
RaGe
  • 22,696
  • 11
  • 72
  • 104
11
votes
2 answers

Kubernetes ALB ingress: How to expose multiple ports on ingress resource

I'm trying to find a solution for the problem that seems like something very common. I have a k8s cluster ip service which exposes two ports: 8088 and 60004 I would like to expose these same ports on ALB and not use path based routing This works…
Bakir Jusufbegovic
  • 2,806
  • 4
  • 32
  • 48
8
votes
1 answer

AWS ALB - You must specify subnets from at least two Availability Zones

For an ALB - "You must specify subnets from at least two Availability Zones." For an NLB - "You can specify subnets from one or more Availability Zones." What is the reason for enforcing 2 AZs as a MUST requirement for ALB specifically and not for…
kiran01bm
  • 682
  • 7
  • 18
8
votes
1 answer

AWS Load balancer listener disappears after adding

I am not an expert on AWS, but trying to do a simple thing like creating an Application load balancer, adding target groups to it and trying to add a listener. What happens next is what befuddles me. When on the AWS console -> EC2 -> Load balancer…
JavaTec
  • 965
  • 3
  • 15
  • 30
8
votes
3 answers

AWS ALB returns 502 Bad Gateway from lambda

I have a lambda function which return base64 string, when I invoke lambda from code it works, but when I call lambda behind ALB and base64 string is large size, ALB gives me error 502 Bad Gateway. Note:for small size string ALB also works. // Lambda…
Dharam
  • 469
  • 2
  • 9
  • 23
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

"services is forbidden: User \"system:serviceaccount:tick:external-dns\" cannot list resource \"services\" in API group \"\" at the cluster scope"

I've been following the walkthrough to create an AWS ALB Ingress Controller for my app which is also deployed at an EKS cluster. Everything seems okay , similar answers with the walkthrough but when it comes to the setting up of an external DNS I …
Flora Biletsiou
  • 309
  • 3
  • 6
  • 17
6
votes
1 answer

AWS: Placing an Application Load Balance in front of Elasticsearch Managed Service

I am creating an elasticsearch managed service on AWS; When creating the service, no explicit instances are created and you are just given a url/endpoint; I want to expose the service via an ALB, but when creating the corresponding target groups, I…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
5
votes
2 answers

Nginx as a reverse proxy behind AWS ALB (self-signed)

I've created an environment in AWS which includes an EC2 instance with node js web-server and Nginx installed, behind a self-signed application load balancer. My ALB gets requests from HTTPS (443) and forwards them on HTTP (80) to the Nginx. My…
5
votes
1 answer

How to implement the Client Credentials Grant in AWS ALB

I am trying to implement ALB with OIDC for grant type Client Credentials. I have given Issuer, Token endpoint, Client ID, and Client Secret, Authorization endpoint and User info endpoint in Listeners tab of ALB But i get 400 invalid redirect_uri…
VIJ
  • 1,516
  • 1
  • 18
  • 34
4
votes
2 answers

Adding x-pack enabled Elasticsearch behind AWS application load balancer causing health check failure due to missing authentication

I was using Application load balancer(ALB) on my elasticsearch node and configured the health check as shown in image and health check was working fine and I was able to reach to my ES using load balancer. Now I added x-pack security which requires…
user12056260
4
votes
0 answers

AWS ALB how to set a redirect from subdomain to same subdomain on a different host

I want to set a redirect rule on AWS Application Load Balancer. I added Route53 entries to assign ALB for domains. When I try to set a redirect rule on ALB listener it supports Subdomain conditions but only allows to set "Host" for action part.…
1
2 3 4 5 6 7