github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/website/source/docs/providers/google/r/storage_bucket_object.html.markdown (about) 1 --- 2 layout: "google" 3 page_title: "Google: google_storage_bucket_object" 4 sidebar_current: "docs-google-storage-bucket-object" 5 description: |- 6 Creates a new object inside a specified bucket 7 --- 8 9 # google\_storage\_bucket\_object 10 11 Creates a new object inside an exisiting bucket in Google cloud storage service (GCS). Currently, it does not support creating custom ACLs. For more information see [the official documentation](https://cloud.google.com/storage/docs/overview) and [API](https://cloud.google.com/storage/docs/json_api). 12 13 14 ## Example Usage 15 16 Example creating a public object in an existing `image-store` bucket. 17 18 ``` 19 resource "google_storage_bucket_object" "picture" { 20 name = "butterfly01" 21 source = "/images/nature/garden-tiger-moth.jpg" 22 bucket = "image-store" 23 } 24 25 ``` 26 27 ## Argument Reference 28 29 The following arguments are supported: 30 31 * `name` - (Required) The name of the object. 32 * `bucket` - (Required) The name of the containing bucket. 33 * `source` - (Required) A path to the data you want to upload. 34 * `predefined_acl` - (Optional, Deprecated) The [canned GCS ACL](https://cloud.google.com/storage/docs/access-control#predefined-acl) apply. Please switch 35 to `google_storage_object_acl.predefined_acl`. 36 37 ## Attributes Reference 38 39 The following attributes are exported: 40 41 * `md5hash` - (Computed) Base 64 MD5 hash of the uploaded data. 42 * `crc32c` - (Computed) Base 64 CRC32 hash of the uploaded data.