github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/google/r/compute_backend_bucket.html.markdown (about) 1 --- 2 layout: "google" 3 page_title: "Google: google_compute_backend_bucket" 4 sidebar_current: "docs-google-compute-backend-bucket" 5 description: |- 6 Creates a Backend Bucket resource for Google Compute Engine. 7 --- 8 9 # google\_compute\_backend\_bucket 10 11 A Backend Bucket defines a Google Cloud Storage bucket that will serve traffic through Google Cloud 12 Load Balancer. 13 14 ## Example Usage 15 16 ```hcl 17 resource "google_compute_backend_bucket" "foobar" { 18 name = "image-backend-bucket" 19 description = "Contains beautiful images" 20 bucket_name = "${google_storage_bucket.image_bucket.name}" 21 enable_cdn = true 22 } 23 24 resource "google_storage_bucket" "image_bucket" { 25 name = "image-store-bucket" 26 location = "EU" 27 } 28 ``` 29 30 ## Argument Reference 31 32 The following arguments are supported: 33 34 * `name` - (Required) The name of the backend bucket. 35 36 * `bucket_name` - (Required) The name of the Google Cloud Storage bucket to be used as a backend 37 bucket. 38 39 - - - 40 41 * `description` - (Optional) The textual description for the backend bucket. 42 43 * `enable_cdn` - (Optional) Whether or not to enable the Cloud CDN on the backend bucket. 44 45 * `project` - (Optional) The project in which the resource belongs. If it is not provided, the 46 provider project is used. 47 48 ## Attributes Reference 49 50 In addition to the arguments listed above, the following computed attributes are exported: 51 52 * `self_link` - The URI of the created resource.