How do I achieve path-based routing on an Application Load Balancer?

Last updated: 2019-06-10

I'm running several microservices behind my Application Load Balancer. How do I forward requests to specific target groups based on the URL path?

Resolution

In an Application Load Balancer, you can create a listener with rules that forward requests to target groups based on URL. For instructions, see Tutorial: Use Path-Based Routing with Your Application Load Balancer.

Note: Before you can create a load balancer that uses path-based routing:

  • Launch your Amazon Elastic Compute Cloud (Amazon EC2) instances in a virtual private cloud.
  • Be sure that security groups in your EC2 instances allow access on the listener port and health check port.
  • Confirm that your microservices are deployed on the EC2 instances you plan to register.

Did this article help you?

Anything we could improve?


Need more help?