mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-24 18:46:00 +00:00
provider/google: Added preemtible
flag to instance_template
This commit is contained in:
parent
f8047b2c1f
commit
e316e72a12
|
@ -86,13 +86,14 @@ The following arguments are supported:
|
||||||
This can be specified multiple times for multiple networks. Structure is
|
This can be specified multiple times for multiple networks. Structure is
|
||||||
documented below.
|
documented below.
|
||||||
|
|
||||||
* `automatic_restart` - (Optional) Specifies whether the instance should be
|
* `automatic_restart` - (Optional, Deprecated - see `scheduling`)
|
||||||
|
Specifies whether the instance should be
|
||||||
automatically restarted if it is terminated by Compute Engine (not
|
automatically restarted if it is terminated by Compute Engine (not
|
||||||
terminated by a user).
|
terminated by a user).
|
||||||
This defaults to true.
|
This defaults to true.
|
||||||
|
|
||||||
* `on_host_maintenance` - (Optional) Defines the maintenance behavior for this
|
* `on_host_maintenance` - (Optional, Deprecated - see `scheduling`)
|
||||||
instance.
|
Defines the maintenance behavior for this instance.
|
||||||
|
|
||||||
* `service_account` - (Optional) Service account to attach to the instance.
|
* `service_account` - (Optional) Service account to attach to the instance.
|
||||||
|
|
||||||
|
@ -150,6 +151,18 @@ The `service_account` block supports:
|
||||||
* `scopes` - (Required) A list of service scopes. Both OAuth2 URLs and gcloud
|
* `scopes` - (Required) A list of service scopes. Both OAuth2 URLs and gcloud
|
||||||
short names are supported.
|
short names are supported.
|
||||||
|
|
||||||
|
The `scheduling` block supports:
|
||||||
|
|
||||||
|
* `automatic_restart` - (Optional) Specifies whether the instance should be
|
||||||
|
automatically restarted if it is terminated by Compute Engine (not
|
||||||
|
terminated by a user).
|
||||||
|
This defaults to true.
|
||||||
|
|
||||||
|
* `on_host_maintenance` - (Optional) Defines the maintenance behavior for this instance.
|
||||||
|
|
||||||
|
* `preemptible` - (Optional) Allows instance to be preempted. Read
|
||||||
|
more on this [here](https://cloud.google.com/compute/docs/instances/preemptible).
|
||||||
|
|
||||||
## Attributes Reference
|
## Attributes Reference
|
||||||
|
|
||||||
The following attributes are exported:
|
The following attributes are exported:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user