Cloudflare, AWS, and HTTPS 🔐

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).

Cloudflare Configure Full(Strict) TLS

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. 🧠

📨 Contact GSPC ✉️

AWS Certified Certified Terraform Associate AWS Serverless AWS Certified Developer Associate GitHub Foundations Certification GitHub Actions Certification Certified SysOps Administrator Certified AWS Security Specialist Certified AWS DevOps Engineer Professional GCP: Cloud Digital Leader Certification Badge