github.com/koding/terraform@v0.6.4-0.20170608090606-5d7e0339779d/website/source/docs/providers/google/r/storage_object_acl.html.markdown (about)

     1  ---
     2  layout: "google"
     3  page_title: "Google: google_storage_object_acl"
     4  sidebar_current: "docs-google-storage-object-acl"
     5  description: |-
     6    Creates a new object ACL in Google Cloud Storage.
     7  ---
     8  
     9  # google\_storage\_object\_acl
    10  
    11  Creates a new object ACL in Google cloud storage service (GCS). For more information see 
    12  [the official documentation](https://cloud.google.com/storage/docs/access-control/lists) 
    13  and 
    14  [API](https://cloud.google.com/storage/docs/json_api/v1/objectAccessControls).
    15  
    16  ## Example Usage
    17  
    18  Create an object ACL with one owner and one reader.
    19  
    20  ```hcl
    21  resource "google_storage_bucket" "image-store" {
    22    name     = "image-store-bucket"
    23    location = "EU"
    24  }
    25  
    26  resource "google_storage_bucket_object" "image" {
    27    name   = "image1"
    28    bucket = "${google_storage_bucket.name}"
    29    source = "image1.jpg"
    30  }
    31  
    32  resource "google_storage_object_acl" "image-store-acl" {
    33    bucket = "${google_storage_bucket.image_store.name}"
    34    object = "${google_storage_bucket_object.image_store.name}"
    35  
    36    role_entity = [
    37      "OWNER:user-my.email@gmail.com",
    38      "READER:group-mygroup",
    39    ]
    40  }
    41  ```
    42  
    43  ## Argument Reference
    44  
    45  * `bucket` - (Required) The name of the bucket it applies to.
    46  
    47  * `object` - (Required) The name of the object it applies to.
    48  
    49  - - -
    50  
    51  * `predefined_acl` - (Optional) The [canned GCS ACL](https://cloud.google.com/storage/docs/access-control#predefined-acl) to apply. Must be set if `role_entity` is not.
    52  
    53  * `role_entity` - (Optional) List of role/entity pairs in the form `ROLE:entity`. See [GCS Object ACL documentation](https://cloud.google.com/storage/docs/json_api/v1/objectAccessControls) for more details. Must be set if `predefined_acl` is not.
    54  
    55  ## Attributes Reference
    56  
    57  Only the arguments listed above are exposed as attributes.