Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forwarding_rule support argument network_tier #125

Open
TedCat opened this issue Nov 1, 2023 · 3 comments
Open

forwarding_rule support argument network_tier #125

TedCat opened this issue Nov 1, 2023 · 3 comments
Labels
question Further information is requested waiting-response Waiting for issue author to respond.

Comments

@TedCat
Copy link

TedCat commented Nov 1, 2023

TL;DR

i'm try to create a tcp internal lb, hit error Error "creating ForwardingRule: googleapi: Error 400: STANDARD network tier (the project's default network tier) is not supported: Network tier other than PREMIUM is not supported for loadBalancingScheme=INTERNAL., badRequest"

Expected behavior

support argument network_tier for google_compute_forwarding_rule

Observed behavior

My Project Network Service Tier config is Standard, ip_address is not set. The error pops up when creating resource. Bypassing this issue, I have to define the network_tier to "PREMIUM" explicitly in google_compute_forwarding_rule.

Terraform Configuration

resource "google_compute_forwarding_rule" "default" {
  project               = var.project
  name                  = var.name
  region                = var.region
  network               = data.google_compute_network.network.self_link
  subnetwork            = data.google_compute_subnetwork.network.self_link
  network_tier          = "PREMIUM"
  allow_global_access   = var.global_access
  load_balancing_scheme = "INTERNAL"
  backend_service       = google_compute_region_backend_service.default.self_link
  ip_address            = var.ip_address
  ip_protocol           = var.ip_protocol
  ports                 = var.ports
  all_ports             = var.all_ports
  service_label         = var.service_label
  labels                = var.labels
}


module "test_ilb" {
  source        = "GoogleCloudPlatform/lb-internal/google"
  version       = "~> 5.0"
  project       = var.project_id
  global_access = false
  network       = data.google_compute_network.my-network.name
  subnetwork    = data.google_compute_subnetwork.my-subnetwork.name
  region        = var.region
  name          = local.resource_name
  ports         = ["8080"]
  source_tags   = []
  target_tags   = []
  backends      = []
  health_check  = local.health_check
}

Terraform Version

$ terraform version
Terraform v1.3.7
on linux_amd64
+ provider registry.terraform.io/hashicorp/google v4.84.0
+ provider registry.terraform.io/hashicorp/google-beta v4.84.0
+ provider registry.terraform.io/hashicorp/random v3.5.1

Additional information

No response

@TedCat TedCat added the bug Something isn't working label Nov 1, 2023
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Dec 31, 2023
@imrannayer imrannayer removed the Stale label Jan 2, 2024
Copy link

github-actions bot commented Mar 2, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Mar 2, 2024
@imrannayer imrannayer removed the Stale label Mar 4, 2024
@imrannayer imrannayer added enhancement New feature or request and removed bug Something isn't working labels May 2, 2024
@imrannayer
Copy link
Collaborator

@TedCat According to this doc internal load balancer is only supported for Premium tier.

https://cloud.google.com/load-balancing/docs/choosing-load-balancer#summary-gclb

@imrannayer imrannayer added question Further information is requested waiting-response Waiting for issue author to respond. and removed enhancement New feature or request labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested waiting-response Waiting for issue author to respond.
Projects
None yet
Development

No branches or pull requests

2 participants