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.33k stars 1.73k forks source link

Add Logging Config to Storage Transfer Job #12802

Open AntoineDao opened 2 years ago

AntoineDao commented 2 years ago

Community Note

Description

The google_storage_transfer_job resource does not expose the LoggingConfig field from the REST definition. We should expose it to enable logging config management through the terraform provider.

New or Affected Resource(s)

Potential Terraform Configuration

# Propose what you think the configuration to take advantage of this feature should look like.
# We may not use it verbatim, but it's helpful in understanding your intent.
resource "google_storage_transfer_job" "transfer_job" {
  description = "a storage transfer job"
  project     =  "foo-bar"

  transfer_spec {
    gcs_data_source {
      bucket_name = google_storage_bucket.data_source.name
      path  = "foo/bar/"
    }
    gcs_data_sink {
      bucket_name = google_storage_bucket.data_sink.name
      path  = "foo/bar/"
    }
  }

  logging_config {
    log_actions      = [
      "COPY",
      "DELETE"
    ]
    log_action_states = [
      "SUCCEEDED",
      "FAILED"
    ]
  # Optional and can be set to true if posix is used
  enable_on_prem_gcs_transfer_logs = false
  }

}

b/321386816

MayankYadavIproov commented 1 year ago

PR for this is still open.. have we got any ETA for this to be merged and available to use?

michellepolte-optimizely commented 4 months ago

Would be great to see here any progress!

felipefreitasdeoliveira commented 4 months ago

Hello everyone, I would like to use this option in my projects. Would it be possible to implement this option?