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.74k forks source link

Storage bucket object holds #6022

Closed matthias-froomle closed 3 years ago

matthias-froomle commented 4 years ago

Community Note

Description

I'm trying to set a hold on a bucket object as documented in the Google docs but I am unable to find information about this in the provider docs. I'm expecting this either as a block inside the google_storage_bucket_object resource or as a separate resource.

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_storage_bucket_object" "picture" {
  name   = "butterfly01"
  source = "/images/nature/garden-tiger-moth.jpg"
  bucket = "image-store"

  hold {
    type = "temp" or "event"

  }
}

resource "google_storage_bucket_object_hold" "picture_hold" {
  name   = "picture_hold"
  object = google_storage_bucket_object.picture.self_link 
  type   = "temp" or "event"
}

References

jaceq commented 3 years ago

Any update on this? It's been almost a year...

github-actions[bot] commented 3 years ago

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.