Host Based Routing Application Load Balancers


Posted on April 12th 2017


ALB's now have the option for host based routing. I personally use ALB's with ECS and do all my mapping with ports which is useful because my ephemeral port is always changing. But certain applications I have in ECS (such as APIs) could benefit from host based routing and more specifically for staging vs. production.

As of April 5th 2017 in most regions you can now have host header based routing! What's even cooler about all of this is that you can optionally add other routing rules on top of this. For example...

staging.example.com
prod.example.com

or

mobile-api.example.com/prod
mobile-api..example.com/prod

Very neat stuff and something I have been waiting for for a long time! Thank you Amazon! This will be very useful.

Citation

Built using a homegrown CMS called Kore

© 2017 AWS Tutorial Series