github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/google/r/storage_bucket_acl.html.markdown (about) 1 --- 2 layout: "google" 3 page_title: "Google: google_storage_bucket_acl" 4 sidebar_current: "docs-google-storage-bucket-acl" 5 description: |- 6 Creates a new bucket ACL in Google Cloud Storage. 7 --- 8 9 # google\_storage\_bucket\_acl 10 11 Creates a new bucket ACL in Google cloud storage service(GCS). 12 13 ## Example Usage 14 15 Example creating an ACL on a bucket with one owner, and one reader. 16 17 ```hcl 18 resource "google_storage_bucket" "image-store" { 19 name = "image-store-bucket" 20 location = "EU" 21 } 22 23 resource "google_storage_bucket_acl" "image-store-acl" { 24 bucket = "${google_storage_bucket.image-store.name}" 25 26 role_entity = [ 27 "OWNER:user-my.email@gmail.com", 28 "READER:group-mygroup", 29 ] 30 } 31 ``` 32 33 ## Argument Reference 34 35 * `bucket` - (Required) The name of the bucket it applies to. 36 37 - - - 38 39 * `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. 40 41 * `role_entity` - (Optional) List of role/entity pairs in the form `ROLE:entity`. See [GCS Bucket ACL documentation](https://cloud.google.com/storage/docs/json_api/v1/bucketAccessControls) for more details. Must be set if `predefined_acl` is not. 42 43 ## Attributes Reference 44 45 Only the arguments listed above are exposed as attributes.