github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/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-resource-storage-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  	predefined_acl = "publicRead"
    24  }
    25  
    26  ```
    27  
    28  ## Argument Reference
    29  
    30  The following arguments are supported:
    31  
    32  * `name` - (Required) The name of the object.
    33  * `bucket` - (Required) The name of the containing bucket.
    34  * `source` - (Required) A path to the data you want to upload.
    35  * `predefined_acl` - (Optional, Default: 'projectPrivate') The [canned GCS ACL](https://cloud.google.com/storage/docs/access-control#predefined-acl) apply.
    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.