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

google_storage_transfer_job lacks folders support #9728

Closed
dmnfortytwo opened this issue Aug 5, 2021 · 3 comments
Closed

google_storage_transfer_job lacks folders support #9728

dmnfortytwo opened this issue Aug 5, 2021 · 3 comments
Labels
Milestone

Comments

@dmnfortytwo
Copy link

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 the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Description

GCS Data Transfer supports folders for both source and destination buckets but corresponding TF resource does not support it.

New or Affected Resource(s)

  • google_storage_transfer_job: gcs_data_source & gcs_data_sink

Potential Terraform Configuration

resource "google_storage_transfer_job" "main_backup" {
  description = "Nightly backup of gs://foo_main"
  project     = var.project

  transfer_spec {
    object_conditions {
      min_time_elapsed_since_last_modification = "259200s" # 3 days
    }

    gcs_data_source {
      bucket_name = "foo_main"
      folder      = "dummy/"
    }
    gcs_data_sink {
      bucket_name = google_storage_bucket.main_backup.name
      folder      = "foobar"
    }
  }

  schedule {
    schedule_start_date {
      year  = 2018
      month = 10
      day   = 1
    }
    schedule_end_date {
      year  = 2019
      month = 1
      day   = 15
    }
    start_time_of_day {
      hours   = 23
      minutes = 30
      seconds = 0
      nanos   = 0
    }
  }
}

Screenshot at 2021-08-05 15:28:38
Screenshot at 2021-08-05 15:28:19

@rileykarson rileykarson added this to the Goals milestone Aug 9, 2021
@psvaiter
Copy link

I guess this feature has been added in v3.85.0 using the name path.

@github-actions github-actions bot added service/storage forward/review In review; remove label to forward labels Sep 11, 2023
@roaks3
Copy link
Collaborator

roaks3 commented Nov 29, 2023

Yep, appears fixed by GoogleCloudPlatform/magic-modules#5117 with path

@roaks3 roaks3 closed this as completed Nov 29, 2023
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants