hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.36k stars 1.75k forks source link

Add Support for Optional Log Fields to `google_cloud_region_backend_service` #19187

Open mhottinger1 opened 3 months ago

mhottinger1 commented 3 months ago

Community Note

Description

The log_config field for google_compute_region_backend_service currently only supports two functions:

  1. Enabling logs
  2. Adjusting the sample rate

    There are two additional options that can be set, but not currently supported by this provider plug-in.

Optional Logging - lets you specify the optional fields you want to log. Supported options:

New or Affected Resource(s)

Potential Terraform Configuration

resource “google_compute_region_backend_service” “my_compute_region_backend” { 
  …
  log_config: {
    enable = true
    sample_rate = 1
    log_optional = true
}

References

No response

b/362277896

melinath commented 3 months ago

Note from triage: This is requesting support for the logConfig.optionalMode field. https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices

Ideally we'd also add this field to google_compute_backend_service to keep them in sync.

njay4928 commented 6 days ago

Is this available? @melinath @mhottinger1