-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Labels
enhancementNew feature or requestNew feature or request
Description
TL;DR
Add support for the network_tier parameter in the regional_proxy_lb module with a default value of STANDARD, enabling users to choose between STANDARD and PREMIUM tiers as needed.
Terraform Resources
google_compute_forwarding_ruleDetailed design
The regional_proxy_lb module currently lacks a way to customize the network_tier used in its google_compute_forwarding_rule resource. By default, Google Cloud uses the PREMIUM tier, which might not be desirable in all use cases. Adding a network_tier variable to the module would allow users to specify either STANDARD or PREMIUM, depending on their networking requirements or cost constraints.
Suggested implementation:
Introduce a new variable in variables.tf:
variable "network_tier" {
description = "The network tier to use for the forwarding rule. Default is STANDARD."
type = string
default = "STANDARD"
}
Use this variable in the google_compute_forwarding_rule resource:
network_tier = var.network_tier
This mirrors the behavior of other modules like http-lb, which already allow network tier customization.Additional information
Having this parameter configurable improves flexibility for those using STANDARD tier in internal or regional load balancing scenarios. It also brings feature parity across the load balancer modules in this repository.
ThiagoMarizani
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request