You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for configuring host and path rules in URL maps within the terraform-google-lb-http module, allowing users to define multiple host and path matchers when using HTTP Load Balancer with Serverless NEGs.
Terraform Resources
Terraform Resources:
google_compute_url_map
google_compute_backend_service
Detailed design
Currently, the terraform-google-lb-http module does not support host and path rules customization for URL maps. To enhance flexibility, we recommend adding variables that allow users to define both host rules and path matchers. Here’s an example design for reference:
New Variable Proposal:
host_and_path_rules: This variable could be a list of objects, each containing both host and path specifications.
Example Configuration:
In the module’s google_compute_url_map resource, dynamic blocks could be used to iterate through host_and_path_rules, creating the necessary host_rule and path_matcher configurations.
This enhancement will provide users with the flexibility to configure complex routing scenarios within a single load balancer, improving manageability and reducing the need for custom module modifications.
Additional information
Adding support for this feature will make it easier for users who require specific path-based routing rules alongside host rules, especially for applications using Cloud Run, App Engine, and Cloud Functions within a shared load balancer. This addition is expected to reduce the need for manual module customization, improving the usability of the module.
The text was updated successfully, but these errors were encountered:
TL;DR
Add support for configuring host and path rules in URL maps within the terraform-google-lb-http module, allowing users to define multiple host and path matchers when using HTTP Load Balancer with Serverless NEGs.
Terraform Resources
Terraform Resources:
Detailed design
Currently, the terraform-google-lb-http module does not support host and path rules customization for URL maps. To enhance flexibility, we recommend adding variables that allow users to define both host rules and path matchers. Here’s an example design for reference:
New Variable Proposal:
host_and_path_rules: This variable could be a list of objects, each containing both host and path specifications.
Example Configuration:
In the module’s google_compute_url_map resource, dynamic blocks could be used to iterate through host_and_path_rules, creating the necessary host_rule and path_matcher configurations.
This enhancement will provide users with the flexibility to configure complex routing scenarios within a single load balancer, improving manageability and reducing the need for custom module modifications.
Additional information
Adding support for this feature will make it easier for users who require specific path-based routing rules alongside host rules, especially for applications using Cloud Run, App Engine, and Cloud Functions within a shared load balancer. This addition is expected to reduce the need for manual module customization, improving the usability of the module.
The text was updated successfully, but these errors were encountered: