Cloudflare, AWS, and HTTPS 🔐
2024-10-22
When configuring Cloudflare, AWS ECS behind an ALB with HTTPS I ran into the problem ERR_TOO_MANY_REDIRECTS. I couldn't figure if the
problem was coming from ECS, nginx, flask, the ALB, or Cloudflare 🤔.
Docs to the Rescue 🛟
Eventually I landed here in the Cloudflare docs ERR_TOO_MANY_REDIRECTS,
which pointed out that if you have listener rules on your ALB that redirect to HTTPS, you need to make sure that Cloudflare is
set to Full or Full (strict).

Conclusion 🝢
Another once you know you know moment. I hope this helps you avoid the same headache I had. 🤕 I hope it reminds my future self how to fix this problem if it arises again. 🧠