terraform-aws-ecs icon indicating copy to clipboard operation
terraform-aws-ecs copied to clipboard

Path based Routing for ALB

Open amazon-q-developer[bot] opened this issue 6 months ago • 5 comments

This pull request adds path-based routing capabilities to the ECS module, allowing multiple services to run within a single ECS cluster while routing traffic based on URL paths. The key changes include:

  1. New support for configuring routing rules on both external and internal Application Load Balancers (ALBs)
  2. Added ability to define path patterns, target groups, priorities, and optional host headers for routing rules
  3. Implementation of test cases to verify the path-based routing functionality
  4. Updated documentation and examples showing how to use path-based routing with multiple services
  5. New output variables to expose the created routing rule IDs

This enhancement improves the module's flexibility by enabling more sophisticated traffic routing patterns and better resource utilization through service consolidation.

amazon-q-developer[bot] avatar May 29 '25 23:05 amazon-q-developer[bot]