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
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,9 @@ variable "project_id" {
22
22
default = null
23
23
}
24
24
25
-
variable "hostname" {
26
-
description = "Hostname prefix for instances"
25
+
variable "region" {
26
+
description = "The Google Cloud region where the managed instance group resides."
27
27
type = string
28
-
default = "default"
29
28
}
30
29
31
30
variable "mig_name" {
@@ -34,9 +33,16 @@ variable "mig_name" {
34
33
default = ""
35
34
}
36
35
37
-
variable "region" {
38
-
description = "The Google Cloud region where the managed instance group resides."
36
+
variable "hostname" {
37
+
description = "Hostname prefix for instances"
39
38
type = string
39
+
default = "default"
40
+
}
41
+
42
+
variable "target_size" {
43
+
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 = "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."
67
-
type = number
68
-
default = 1
69
-
}
70
-
71
71
variable "target_pools" {
72
72
description = "The target load balancing pools to assign this group to."
Copy file name to clipboardExpand all lines: modules/instance_template/metadata.yaml
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -83,10 +83,21 @@ spec:
83
83
- name: project_id
84
84
description: The GCP project ID
85
85
varType: string
86
+
- name: region
87
+
description: Region where the instance template should be created.
88
+
varType: string
86
89
- name: name_prefix
87
90
description: Name prefix for the instance template
88
91
varType: string
89
92
defaultValue: default-instance-template
93
+
- name: machine_type
94
+
description: Machine type to create, e.g. n1-standard-1
95
+
varType: string
96
+
defaultValue: n1-standard-1
97
+
- name: spot
98
+
description: Provision a SPOT instance
99
+
varType: bool
100
+
defaultValue: false
90
101
- name: description
91
102
description: The template's description
92
103
varType: string
@@ -95,10 +106,6 @@ spec:
95
106
description: Description of the generated instances
96
107
varType: string
97
108
defaultValue: ""
98
-
- name: machine_type
99
-
description: Machine type to create, e.g. n1-standard-1
100
-
varType: string
101
-
defaultValue: n1-standard-1
102
109
- name: min_cpu_platform
103
110
description: "Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list: https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform"
104
111
varType: string
@@ -118,10 +125,6 @@ spec:
118
125
description: Allow the instance to be preempted
119
126
varType: bool
120
127
defaultValue: false
121
-
- name: spot
122
-
description: Provision a SPOT instance
123
-
varType: bool
124
-
defaultValue: false
125
128
- name: automatic_restart
126
129
description: (Optional) Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
127
130
varType: bool
@@ -137,9 +140,6 @@ spec:
137
140
description: Action to take when Compute Engine preempts a Spot VM.
138
141
varType: string
139
142
defaultValue: STOP
140
-
- name: region
141
-
description: Region where the instance template should be created.
142
-
varType: string
143
143
- name: enable_nested_virtualization
144
144
description: Defines whether the instance should have nested virtualization enabled.
description: Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template#service_account.
description="Machine type to create, e.g. n1-standard-1"
43
-
type=string
44
-
default="n1-standard-1"
45
-
}
46
-
47
59
variable"min_cpu_platform" {
48
60
description="Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list: https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform"
49
61
type=string
@@ -74,12 +86,6 @@ variable "preemptible" {
74
86
default=false
75
87
}
76
88
77
-
variable"spot" {
78
-
type=bool
79
-
description="Provision a SPOT instance"
80
-
default=false
81
-
}
82
-
83
89
variable"automatic_restart" {
84
90
type=bool
85
91
description="(Optional) Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user)."
Copy file name to clipboardExpand all lines: modules/mig/metadata.yaml
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -83,32 +83,32 @@ spec:
83
83
- name: project_id
84
84
description: The Google Cloud project ID
85
85
varType: string
86
-
- name: hostname
87
-
description: Hostname prefix for instances
86
+
- name: region
87
+
description: The Google Cloud region where the managed instance group resides.
88
88
varType: string
89
-
defaultValue: default
89
+
required: true
90
90
- name: mig_name
91
91
description: Managed instance group name. When variable is empty, name will be derived from var.hostname.
92
92
varType: string
93
93
defaultValue: ""
94
-
- name: region
95
-
description: The Google Cloud region where the managed instance group resides.
94
+
- name: hostname
95
+
description: Hostname prefix for instances
96
96
varType: string
97
-
required: true
97
+
defaultValue: default
98
+
- name: target_size
99
+
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.
100
+
varType: number
101
+
defaultValue: 1
98
102
- name: instance_template
99
103
description: Instance template self_link used to create compute instances
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.
110
-
varType: number
111
-
defaultValue: 1
112
112
- name: target_pools
113
113
description: The target load balancing pools to assign this group to.
0 commit comments