2,993 questions
-1
votes
0
answers
20
views
CloudFront caching Traefik Sticky Sessions in Docker Swarm causing 502 errors after deployment
We run a Meteor application that requires sticky sessions. We recently refactored our infrastructure and have started seeing connectivity issues.
Old Setup (Stable): A single EC2 instance running ...
0
votes
1
answer
97
views
AWS Elastic Beanstalk throws Target.FailedHealthChecks while moving to Load Balancer from Single Instance
I am getting this error in my AWS persistently. To apply HTTPS in my backend APIs, I moved Single Instance to Load Balancer (ALB). I added SSL certificate from ACM and 443 to the load balancer ...
124
votes
12
answers
108k
views
Redirecting EC2 Elastic Load Balancer from HTTP to HTTPS
I want to redirect all the HTTP request to https request on ELB. I have two EC2 instances. I am using nginx for the server. I have tried a rewriting the nginx conf files without any success. I would ...
68
votes
7
answers
37k
views
What's the target group port for, when using Application Load Balancer + EC2 Container Service
I'm trying to setup an ALB which listens on port 443, load balancing to ECS Docker containers on random ports, lets say I have 2 container instances of the same task definition, listening on port ...
0
votes
0
answers
66
views
AWS ALB configure to return 404 with HTTP
I am trying to deploy an EKS cluster using Terraform but when using LoadBalancer as service type to access the application from the internet (HTTP) I always get 404.
I got no errors on k8s service, ...
-2
votes
2
answers
1k
views
Why does ELB have its own account IDs? [closed]
I was setting up AWS infra through Terraform and realized I have to allow ELB account IDs access to write in S3 for writing the logs. Why does ELB have its own account ID in different regions and what ...
0
votes
0
answers
494
views
How to Visualise ELB Logs from S3 in Grafana?
I am trying to visualize S3 logs in Grafana, which are collected from a load balancer. The logs are available at:
test-bkp/AWSLogs/851725603941/elasticloadbalancing/us-east-2/year/month/date/*.gz
What ...
63
votes
7
answers
45k
views
How to fix WordPress HTTPS issues when behind an Amazon Load Balancer?
I've had this issue before. When running WordPress (or other PHP scripts) behind Amazon's EC2 Load Balancer, the scripts do not realize they are being ran on the https:// protocol and results in ...
-1
votes
1
answer
219
views
How to attach AWS Auto Scaling group instances to ELB Target Group in Terraform ? Should `aws_autoscaling_attachment` or `target_group_arns` be used?
When using Terraform aws provider, I want to attach my aws_autoscaling_group instances to my Application Load Balancer target group (aws_lb_target_group).
Should I only use resource ...
65
votes
7
answers
30k
views
Does it make sense to have an Amazon Elastic Load Balancer with just one EC2 instance?
My question is simple. Does it make sense to have an Amazon Elastic Load Balancer (ELB) with just one EC2 instance?
If I understood right, ELB will switch traffic between EC2 instances. However, I ...
1
vote
3
answers
15k
views
how to configure s3 bucket to allow aws application load balancer (not class) use it? currently throws' access denied'
I have an application load balancer and I'm trying to enable logging, terraform code below:
resource "aws_s3_bucket" "lb-logs" {
bucket = "yeo-messaging-${var.environment}-...
0
votes
1
answer
210
views
Cannot access EKS cluster via internet with ELB
I have created an EKS cluster via terraform all pods are running as expecting. However, I am having networking challenges. My api-service pod should return hello world when accessing it on port 8000 ...
1
vote
1
answer
725
views
AWS Load Balancer Controller can't deploy ELB
I'm having issues with setting up AWS Load Balancer Controller (AWS LBC) on an EKS located within a private VPC (no internet access, just intranet to my corp network).
I provided all endpoints that I ...
21
votes
7
answers
44k
views
EKS : could not find any suitable subnets for creating the ELB
I am trying to expose a service to the outside world using the loadBalancer type service.
For that, i have followed this doc
https://aws.amazon.com/premiumsupport/knowledge-center/eks-kubernetes-...
58
votes
6
answers
96k
views
Assigning Static IP Address to AWS Load Balancer
How can I assign a static IP address to a ELB. Seems like I cannot.
Some articles online asks to create a Route 53 record but this requires changing CNAME of domain which also redirect email traffic. ...
83
votes
5
answers
40k
views
Amazon ELB in VPC [closed]
We're using Amazon EC2, and we want to put an ELB (load balancer) to 2 instances on a private subnet. If we just add the private subnet to the ELB, it will not get any connections, if we attach both ...
0
votes
0
answers
125
views
AWS ALB Listeners & Target Groups
I am running 3 instances behind an application load balancer. I am trying to set up endpoints so when you access the ALB for example on the /ui endpoint, it will forward you to the appropriate target ...
0
votes
1
answer
203
views
Bad Gateway ELB ECS Fargate Healthy Target Groups
I'm trying to deploy a Nest.js application in ECS Fargate. I keep getting the 502 Bad Gateway error for some odd reason. All target groups report healthy state, the task reports healthy state, my ...
0
votes
0
answers
350
views
Instance is in the EC2 Availability Zone for which the load balancer is not configured to route traffic to
Earlier I created two instances of my microserice running on EC2 in us-east-1c AZ & created a classic load balancer in the same AZ - that worked smoothly.
But when I changed the AZ for the classic ...
29
votes
7
answers
33k
views
Terraform ELB S3 Permissions Issue
I am having an issue using Terraform (v0.9.2) adding services to an ELB (I'm using: https://github.com/segmentio/stack/blob/master/s3-logs/main.tf).
When I run terraform apply I get this error:
* ...
21
votes
4
answers
15k
views
What are the practical differences between an IP vs instance based target types for an AWS NLB?
I'm using an AWS NLB to expose my Kubernetes pods to the internet. The NLB is currently using instance target types but I noticed there are also IP target types. What are the differences between an ...
45
votes
5
answers
31k
views
AWS: "Unable to parse certificate. Please ensure the certificate is in PEM format."
I am trying to update a wildcard certificate for EC2 instances on AWS. The service these servers belong to consists of a single server and a set of servers behind AWS ELB.
The certificate has been ...
30
votes
11
answers
23k
views
AWS Elastic Load Balancing: Seeing extremely long initial connection time
For a couple of days, we often see an extremely long initial connection time (15s - 1.3 minutes) to our ELBs when making any request via ssl.
Oddly, I was only able to observe this in Google Chrome (...
-1
votes
2
answers
210
views
AWS : Deregister UnHealthy IPs from Registered Targets (Target Group) using GitHub action workflow is not working
Problem Statement : While Registering new IP in ELB Fargate under Target Group, Old IP went into the Unhealthy status. I want to Deregister old IP automatically with the help of Github actions ...
0
votes
1
answer
2k
views
AWS Network Load Balancer sending Traffic to Multiple Subnets
I have a Network Load Balancer exposed to the public internet with a listener of 80 and 443. The network load balancer has 2 subnets subnet-A and subnet-B. I have a target group for the port 443 ...