terraform-aws-ecs
terraform-aws-ecs copied to clipboard
Path based Routing for ALB
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:
- New support for configuring routing rules on both external and internal Application Load Balancers (ALBs)
- Added ability to define path patterns, target groups, priorities, and optional host headers for routing rules
- Implementation of test cases to verify the path-based routing functionality
- Updated documentation and examples showing how to use path-based routing with multiple services
- 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.