You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autogen/variables.tf.tmpl
+14-17Lines changed: 14 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ variable "project_id" {
24
24
25
25
variable "hostname" {
26
26
description = "Hostname prefix for instances"
27
+
type = string
27
28
default = "default"
28
29
}
29
30
@@ -35,29 +36,35 @@ variable "mig_name" {
35
36
36
37
variable "region" {
37
38
description = "The GCP region where the managed instance group resides."
39
+
type = string
38
40
}
39
41
40
42
{% if mig %}
41
43
variable "instance_template" {
42
44
description = "Instance template self_link used to create compute instances"
45
+
type = string
43
46
}
44
47
45
48
{% else %}
46
49
variable "instance_template_initial_version" {
47
50
description = "Instance template self_link used to create compute instances for the initial version"
51
+
type = string
48
52
}
49
53
50
54
variable "instance_template_next_version" {
51
55
description = "Instance template self_link used to create compute instances for the second version"
56
+
type = string
52
57
}
53
58
54
59
variable "next_version_percent" {
55
60
description = "Percentage of instances defined in the second version"
61
+
type = number
56
62
}
57
63
58
64
{% endif %}
59
65
variable "target_size" {
60
66
description = "The target number of running instances for this managed instance group. This value should always be explicitly set unless this resource is attached to an autoscaler, in which case it should never be set."
description = "Creates an autoscaler for the managed instance group"
163
170
default = "false"
171
+
type = string
164
172
}
165
173
166
174
variable "max_replicas" {
167
175
description = "The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas."
168
176
default = 10
177
+
type = number
169
178
}
170
179
171
180
variable "min_replicas" {
172
181
description = "The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0."
173
182
default = 2
183
+
type = number
174
184
}
175
185
176
186
variable "cooldown_period" {
177
187
description = "The number of seconds that the autoscaler should wait before it starts collecting information from a new instance."
description = "Autoscaling, cpu utilization policy block as single element array. https://www.terraform.io/docs/providers/google/r/compute_autoscaler#cpu_utilization"
description = "Network to deploy to. Only one of network or subnetwork should be specified."
243
-
default = ""
244
-
}
245
-
246
-
variable "subnetwork" {
247
-
description = "Subnet to deploy to. Only one of network or subnetwork should be specified."
248
-
default = ""
249
-
}
250
-
251
-
variable "subnetwork_project" {
252
-
description = "The project that subnetwork belongs to"
253
-
default = ""
254
-
}
255
-
256
252
variable "named_ports" {
257
253
description = "Named name and named port. https://cloud.google.com/load-balancing/docs/backend-service#named_ports"
258
254
type = list(object({
@@ -264,6 +260,7 @@ variable "named_ports" {
264
260
265
261
variable "wait_for_instances" {
266
262
description = "Whether to wait for all instances to be created/updated before returning. Note that if this is set to true and the operation does not succeed, Terraform will continue trying until it times out."
| deletion\_protection | Enable deletion protection on this instance. Note: you must disable deletion protection before removing the resource, or the instance cannot be deleted and the Terraform run will not complete successfully. |`bool`|`false`| no |
11
10
| nat\_ip | Public ip address |`any`|`null`| no |
12
11
| network\_tier | Network network\_tier |`string`|`"PREMIUM"`| no |
13
12
| num\_instances | Number of instances to create |`any`| n/a | yes |
Copy file name to clipboardExpand all lines: examples/compute_instance/simple/variables.tf
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -51,12 +51,6 @@ variable "network_tier" {
51
51
default="PREMIUM"
52
52
}
53
53
54
-
variable"deletion_protection" {
55
-
type=bool
56
-
description="Enable deletion protection on this instance. Note: you must disable deletion protection before removing the resource, or the instance cannot be deleted and the Terraform run will not complete successfully."
0 commit comments