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

google_storage_bucket_object should support storage URI as source #6790

Open mrzor opened 4 years ago

mrzor commented 4 years ago

Community Note

Description

google_storage_bucket_object accepts a source parameter that points to a local path. It would be helpful in some situations to have it accept gs:// URIs as well.

New or Affected Resource(s)

Potential Terraform Configuration

# Pretty straightforward
resource "google_storage_bucket_object" "my-copy" {
    name   = "my-own-big-unwieldy-file.bin"
    source = "gs://my-unwieldy-file-storage/original-big-unwiedly-file.bin"
    bucket = google_storage_bucket.default.name
}

References

danawillow commented 4 years ago

REST API version: https://cloud.google.com/storage/docs/json_api/v1/objects/copy

mitj04 commented 1 year ago
mitj04 commented 1 year ago

b/263934456

jbressand commented 1 year ago

any news ?