Skip to content

Missing docs on load_balancing_scheme for compute_forwarding_rule #22098

Closed
GoogleCloudPlatform/magic-modules
#13489
@wyardley

Description

@wyardley

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Terraform Version & Provider Version(s)

Terraform v1.11.3
on darwin_arm64
+ provider registry.terraform.io/hashicorp/google v6.27.0
+ provider registry.terraform.io/hashicorp/google-beta v6.27.0
+ provider registry.terraform.io/hashicorp/null v3.2.3
+ provider registry.terraform.io/hashicorp/random v3.7.1

Affected Resource(s)

  • google_compute_forwarding_rule

Terraform Configuration

resource "google_compute_forwarding_rule" "foo" {
  name                    = "foo"
  region                  = "us-central1"
  network                 = "foo"
  ip_address              = google_compute_address.xyz.self_link
  load_balancing_scheme   = ""
  target                  = data.google_sql_database_instance.xyz.psc_service_attachment_link
  allow_psc_global_access = true
}

Debug Output

No response

Expected Behavior

All resource attributes to be documented.

Actual Behavior

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_forwarding_rule contains examples of load_balancing_scheme being set for google_compute_forwarding_rule, but doesn't appear to list it among the resource attributes that can be set.

Looking through https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/products/compute/ForwardingRule.yaml, I don't see it, but seems like it's coming from
https://github.com/GoogleCloudPlatform/magic-modules/blob/4a72b591b882645a803c578c097096c694eb9687/mmv1/third_party/cai2hcl/services/compute/compute_forwarding_rule.go#L107

The docs also appear to be generated, so I'm not sure how to make a fix for the docs.

There seem to be some valid uses for setting this to an empty string, but I don't find a lot of docs on this. It appears to be possible to set the scheme to "" (however, somewhat unexpectedly, omitting the empty string or setting it to null causes it to get set to EXTERNAL).

Steps to reproduce

Important Factoids

No response

References

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions