mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
Google compute instance doc updates (#3115)
* Clean up description of access_config block * format whitespace * Add default values and doc relationship between fields. Attempting to create an instance with: ``` scheduling { preemptible = true } ``` yields the following error (whitespace reformatted): ``` Error: Error applying plan: 1 error(s) occurred: * google_compute_instance.test: 1 error(s) occurred: * google_compute_instance.test: Error creating instance: googleapi: Error 400: Invalid value for field 'resource.scheduling.preemptible': 'true'. Scheduling must have preemptible be false when AutomaticRestart is true., invalid ``` Documenting the default values for each field and the relationship between then will help users avoid this error.
This commit is contained in:
parent
c49323aac5
commit
82e6e48723
@ -214,11 +214,10 @@ The `network_interface` block supports:
|
||||
|
||||
* `access_config` - (Optional) Access configurations, i.e. IPs via which this
|
||||
instance can be accessed via the Internet. Omit to ensure that the instance
|
||||
is not accessible from the Internet (this means that ssh provisioners will
|
||||
not work unless you are running Terraform can send traffic to the instance's
|
||||
network (e.g. via tunnel or because it is running on another cloud instance
|
||||
on that network). This block can be repeated multiple times. Structure
|
||||
documented below.
|
||||
is not accessible from the Internet. If omitted, ssh provisioners will not
|
||||
work unless Terraform can send traffic to the instance's network (e.g. via
|
||||
tunnel or because it is running on another cloud instance on that network).
|
||||
This block can be repeated multiple times. Structure documented below.
|
||||
|
||||
* `alias_ip_range` - (Optional) An
|
||||
array of alias IP ranges for this network interface. Can only be specified for network
|
||||
@ -262,14 +261,17 @@ The `service_account` block supports:
|
||||
|
||||
The `scheduling` block supports:
|
||||
|
||||
* `preemptible` - (Optional) Is the instance preemptible.
|
||||
* `preemptible` - (Optional) Specifies if the instance is preemptible.
|
||||
If this field is set to true, then `automatic_restart` must be
|
||||
set to false. Defaults to false.
|
||||
|
||||
* `on_host_maintenance` - (Optional) Describes maintenance behavior for the
|
||||
instance. Can be MIGRATE or TERMINATE, for more info, read
|
||||
[here](https://cloud.google.com/compute/docs/instances/setting-instance-scheduling-options)
|
||||
[here](https://cloud.google.com/compute/docs/instances/setting-instance-scheduling-options).
|
||||
|
||||
* `automatic_restart` - (Optional) Specifies if the instance should be
|
||||
restarted if it was terminated by Compute Engine (not a user).
|
||||
Defaults to true.
|
||||
|
||||
The `guest_accelerator` block supports:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user