CloudFront to ALB connection

1

Hi,
I set up CloudFront to serve static front-end from S3 and need some dynamic back-end as well. So, I set up redirection for some requests to ALB as origin (ALB runs Lambda) with cache disabled. Direst requests to ALB work fine and fast (~200ms), but when requests go to CF, only ~50% really work. For other 50% CF returns 502 and ALB doesn't receive any requests.
My location is close to ALB region, so delays shouldn't be.
Tried adjusting TLS versions, forwarding to ALB "native" dns as well as to custom subdomain. The result is the same: half of the times connection doesn't happen. When it happens - it works fast.

Corwin
asked 4 years ago337 views
1 Answer
0

Found the issue. As ALB now forces to add two subnets and I was setting up qa website, I added second randomly and that second was private SN. That's why approx 50% calls failed.
Really, AWS shouldn't force to add second subnet. For prod it is a good thing, but for qa just brings troubles.

Edited by: Corwin on Aug 28, 2020 10:18 AM

Corwin
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions