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

Add field logging_config to resource google_storage_transfer_job #21254

Open
JordanLoehr opened this issue Feb 5, 2025 · 1 comment · May be fixed by GoogleCloudPlatform/magic-modules#12980

Comments

@JordanLoehr
Copy link

JordanLoehr commented Feb 5, 2025

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.

Description

When creating a google_storage_transfer_job you can not currently configure job action and state logging to Cloud Logging via the terraform provider. Support should be added to pass a 'logging_config' field to the google_storage_transfer_job to specify the appropriate configuration as per https://cloud.google.com/storage-transfer/docs/reference/rest/v1/LoggingConfig.

New or Affected Resource(s)

  • google_storage_transfer_job

Potential Terraform Configuration

resource "google_storage_transfer_job" "s3-bucket-nightly-backup" {
  description = "Nightly backup of S3 bucket"
  project     = var.project

  transfer_spec {
    ...
  }

  schedule {
    ...
  }

  notification_config {
   ...
  }

  logging_config {
    log_actions = ["FIND", "COPY", "DELETE"]
    log_action_states = ["SUCCEEDED", "FAILED"]
    enable_on_prem_gcs_transfer_logs = false
  }

}

References

No response

b/395648741

@github-actions github-actions bot added forward/review In review; remove label to forward service/storage labels Feb 5, 2025
@JordanLoehr
Copy link
Author

Working on a PR for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants