From 71d52a3fe0345a24259cb125c022ee90e1f56f61 Mon Sep 17 00:00:00 2001 From: Dana Hoffman Date: Wed, 28 Jun 2017 15:43:58 -0700 Subject: [PATCH] Add `scratch_disk` property to `google_compute_instance` and deprecate `disk` (#123) * Add scratch_disk property to google_compute_instance * docs for scratch_disk * limit scope of scratchDisks array by using bool, test formatting * add slash back to disk check --- docs/r/compute_instance.html.markdown | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/r/compute_instance.html.markdown b/docs/r/compute_instance.html.markdown index f58150d888e..884f3e1b7cb 100644 --- a/docs/r/compute_instance.html.markdown +++ b/docs/r/compute_instance.html.markdown @@ -76,6 +76,9 @@ The following arguments are supported: - - - +* `scratch_disk` - (Optional) Scratch disks to attach to the instance. This can be + specified multiple times for multiple scratch disks. Structure is documented below. + * `can_ip_forward` - (Optional) Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false. @@ -85,9 +88,6 @@ The following arguments are supported: * `description` - (Optional) A brief description of this resource. -* `disk` - (Optional) Disks to attach to the instance. This can be specified - multiple times for multiple disks. Structure is documented below. - * `labels` - (Optional) A set of key/value label pairs to assign to the instance. * `metadata` - (Optional) Metadata key/value pairs to make available from @@ -112,6 +112,9 @@ The following arguments are supported: --- +* `disk` - (DEPRECATED) Disks to attach to the instance. This can be specified + multiple times for multiple disks. Structure is documented below. + * `network` - (DEPRECATED) Networks to attach to the instance. This can be specified multiple times for multiple networks. Structure is documented below. @@ -151,7 +154,12 @@ The `initialize_params` block supports: `global/images/family/{family}`, `family/{family}`, `{project}/{family}`, `{project}/{image}`, `{family}`, or `{image}`. -The `disk` block supports: (Note that either disk or image is required, unless +The `scratch_disk` block supports: + +* `interface` - (Optional) The disk interface to use for attaching this disk; either SCSI or NVME. + Defaults to SCSI. + +(DEPRECATED) The `disk` block supports: (Note that either disk or image is required, unless the type is "local-ssd", in which case scratch must be true). * `disk` - The name of the existing disk (such as those managed by