github.com/erriapo/terraform@v0.6.12-0.20160203182612-0340ea72354f/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  
    33  * `bucket` - (Required) The name of the containing bucket.
    34  
    35  * `source` - (Optional) A path to the data you want to upload. Must be defined
    36  if `content` is not.
    37  
    38  * `content` - (Optional) Data as `string` to be uploaded. Must be defined if
    39  `source` is not.
    40  
    41  * `predefined_acl` - (Optional, Deprecated) The [canned GCS ACL](https://cloud.google.com/storage/docs/access-control#predefined-acl) apply. Please switch 
    42  to `google_storage_object_acl.predefined_acl`.
    43  
    44  ## Attributes Reference
    45  
    46  The following attributes are exported:
    47  
    48  * `md5hash` - (Computed) Base 64 MD5 hash of the uploaded data.
    49  
    50  * `crc32c` - (Computed) Base 64 CRC32 hash of the uploaded data.