From 7053606e935f44d9be7c57344d4cb1dea9dd6215 Mon Sep 17 00:00:00 2001 From: Aditya Anchuri Date: Sat, 12 Nov 2016 18:01:32 -0800 Subject: [PATCH] Added create timeout for compute images and instances - Prevents the corresponding terraform resource from timing out when the images or instances take longer than the default of 4 minutes to be created --- r/compute_image.html.markdown | 3 +++ r/compute_instance.html.markdown | 3 +++ 2 files changed, 6 insertions(+) diff --git a/r/compute_image.html.markdown b/r/compute_image.html.markdown index a183b42f..0b64155a 100644 --- a/r/compute_image.html.markdown +++ b/r/compute_image.html.markdown @@ -53,6 +53,9 @@ The following arguments are supported: (Note that one of either source_disk or Changing this forces a new resource to be created. Structure is documented below. +* `create_timeout` - Configurable timeout in minutes for creating images. Default is 4 minutes. + Changing this forces a new resource to be created. + The `raw_disk` block supports: * `source` - (Required) The full Google Cloud Storage URL where the disk diff --git a/r/compute_instance.html.markdown b/r/compute_instance.html.markdown index 39d0ceb4..3f869a06 100644 --- a/r/compute_instance.html.markdown +++ b/r/compute_instance.html.markdown @@ -105,6 +105,9 @@ The following arguments are supported: * `tags` - (Optional) Tags to attach to the instance. +* `create_timeout` - (Optional) Configurable timeout in minutes for creating instances. Default is 4 minutes. + Changing this forces a new resource to be created. + 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).