Questions tagged [aws-application-load-balancer]

1004 questions
4
votes
1 answer

Authenticate with AWS ALB / Cognito

I am trying to authorize with an ALB from python. As I understand the ALB looks for "AWSELBAuthSessionCookie" cookies before letting you to the website. I also see these cookies when logging into the application myself (using username and password).…
4
votes
1 answer

Reason behind "Successfully reconciled" event on EKS \ K8S Cluster

Received 130 events in the last 3 days I see that event on a new cluster, it functions properly, manages to pass successfully all health/liveness/functional requests Is it a normal event that runs every X minutes? I suspect it's related to the AWS…
4
votes
1 answer

Load balancer health check vs docker health check?

I have an ECS cluster with multiple nodes (task defs) fronted by an application load balancer. Does it make sense to configure a health check at the load balancer and at the container level (within the task definition)? The load balancer runs the…
4
votes
1 answer

Application Load Balancer having problems with CORS

I am running into a CORS problem which says that I'm unable to load my webpage due to the following: "Access to fetch at 'ALB Load balancer dns address:port' from origin 'ALB Load balancer dns address' has been blocked by CORS policy: No…
4
votes
1 answer

Why is it not possible to create an ALB with HTTPS listener without a custom domain (and its TLS certificate)?

I want to add an HTTPS listener to my AWS Application Load Balancer. I see from this thread that it's not possible without a custom domain (and the certificate that authenticates it). My question is why? Couldn't there be a certificate belonging to…
totooooo
  • 1,050
  • 1
  • 12
  • 32
4
votes
1 answer

Can we use one ALB with AWS ECS Fargate?

I am having a bunch of micro services running in AWS ECS fargate with ALB and Route53.Each micro service has an ALB with Route53. Is there any kind of possibility where I can use only one ALB for all the microservices and route to their respective…
4
votes
0 answers

How to pass/send path parameters to Lambda from an AWS ALB event?

I am trying to access my Lambda from an AWS ALB (application load balancer). While I am able to pass query string parameters along with the request and get the values in the event object generated for the alb event, is it possible to pass path…
4
votes
2 answers

Use Qa, Dev and Prod as an environement in Cloudformation

I have created this nested stack. I want to implement the same stack with {prod, dev, qa} environment. Like I want to up the same stack but it doesn't have any name conflicts with each other. I want to deploy the same stack in three different…
4
votes
3 answers

AWS self-signed Application Load Balancer

I've created an ALB using Boto3 and want to configure that load balancer work on HTTPS (self-signed). In order to do that, I have to generate an SSL certificate with open-ssl: openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout key.pem -out…
4
votes
0 answers

Migrating allowFrom from Application to Network Load Balancer in CDK

Question: how do I migrate an ALB performing allowFrom operation in the following snippdt to a NLB? loadBalancer.connections.allowFrom( Peer.ipv4(vpc.vpcCidrBlock), Port.tcp(externalPort), `Allow from VPC on port…
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.…
4
votes
1 answer

Can’t use an existing Target Group when creating a new AWS ECS Service

I’m trying to create a new ECS Service on an Application Load Balancer. When I get to the step to add the container to the Load Balancer I don’t have an option to use an existing Target Group (see image). Is this a bug or am I doing something wrong…
ewein
  • 2,695
  • 6
  • 36
  • 54
4
votes
2 answers

Using AWS Amplify authenticated user to communicate with an ALB or API Gateway?

I set up my AWS Cognito integration into my React Native app using amplify add auth according to the guide, all is well and good, I'm able to register and login in the app. The cli wizard associates two app clients with the User Pool it creates:…
4
votes
1 answer

Why did I have to disable HTTP/2 in AWS Application Load Balancer to prevent ERR_SPDY_PROTOCOL_ERROR?

When I deployed my web application to an AWS environment with an Application Load Balancer (ALB), some of my web service endpoints would not return any data and my Chrome browser would report this error for some http calls:…
3
votes
1 answer

Autoscaling group instances not register on ALB

I have the following Cloudformation template, but the instances are only up for a few seconds before resulting in terminate status. I thought it had something to do with the 'grace' period, 'timeout' periods, but still haven't been able to figure it…