mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 01:26:43 +00:00
![Jeff Goldschrafe](/assets/img/avatar_default.png)
Supports configuring the disk type for Google Compute Engine disk resources. Both `google_compute_disk` and `google_compute_instance` disk types are supported. Resolves #351.
1.1 KiB
1.1 KiB
layout | page_title | sidebar_current |
---|---|---|
Google: google_compute_disk | docs-google-resource-disk |
google_compute_disk
Creates a new persistent disk within GCE, based on another disk.
Example Usage
resource "google_compute_disk" "default" {
name = "test-disk"
type = "pd-ssd"
zone = "us-central1-a"
image = "debian7-wheezy"
}
Argument Reference
The following arguments are supported:
-
name
- (Required) A unique name for the resource, required by GCE. Changing this forces a new resource to be created. -
zone
- (Required) The zone where this disk will be available. -
image
- (Optional) The machine image to base this disk off of. -
size
- (Optional) The size of the image in gigabytes. If not specified, it will inherit the size of its base image. -
type
- (Optional) The GCE disk type.
Attributes Reference
The following attributes are exported:
name
- The name of the resource.zone
- The zone where the resource is located.image
- The name of the image the disk is based off of.size
- The size of the disk in gigabytes.