这是indexloc提供的服务,不要输入任何密码
Skip to content

Add support for network_tier variable in regional_proxy_lb module (default: STANDARD) #121

@bruno561

Description

@bruno561

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_rule

Detailed 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions