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
+16-9Lines changed: 16 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -118,15 +118,16 @@ variable "stateful_ips" {
118
118
variable "update_policy" {
119
119
description = "The rolling update policy. https://www.terraform.io/docs/providers/google/r/compute_region_instance_group_manager#rolling_update_policy"
Copy file name to clipboardExpand all lines: modules/compute_disk_snapshot/metadata.yaml
+1-7Lines changed: 1 addition & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Copyright 2023 Google LLC
1
+
# Copyright 2024 Google LLC
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
@@ -85,17 +85,14 @@ spec:
85
85
- name: name
86
86
description: Name of the resource policy to create
87
87
varType: string
88
-
defaultValue: null
89
88
required: true
90
89
- name: project
91
90
description: The project ID where the resources will be created
92
91
varType: string
93
-
defaultValue: null
94
92
required: true
95
93
- name: region
96
94
description: Region where resource policy resides
97
95
varType: string
98
-
defaultValue: null
99
96
required: true
100
97
- name: snapshot_properties
101
98
description: The properties of the schedule policy. For more details see https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_resource_policy#snapshot_properties
@@ -107,7 +104,6 @@ spec:
107
104
storage_locations = list(string)
108
105
}
109
106
)
110
-
defaultValue: null
111
107
- name: snapshot_retention_policy
112
108
description: The retention policy to be applied to the schedule policy. For more details see https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_resource_policy#retention_policy
113
109
varType: |-
@@ -117,7 +113,6 @@ spec:
117
113
on_source_disk_delete = string
118
114
}
119
115
)
120
-
defaultValue: null
121
116
required: true
122
117
- name: snapshot_schedule
123
118
description: The scheduled to be used by the snapshot policy. For more details see https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_resource_policy#schedule
Copy file name to clipboardExpand all lines: modules/compute_instance/metadata.yaml
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Copyright 2023 Google LLC
1
+
# Copyright 2024 Google LLC
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
@@ -109,7 +109,6 @@ spec:
109
109
- name: instance_template
110
110
description: Instance template self_link used to create compute instances
111
111
varType: string
112
-
defaultValue: null
113
112
required: true
114
113
- name: ipv6_access_config
115
114
description: IPv6 access configurations. Currently a max of 1 IPv6 access configuration is supported. If not specified, the instance will have no external IPv6 Internet access.
@@ -121,7 +120,6 @@ spec:
121
120
- name: labels
122
121
description: (Optional) Labels to override those from the template, provided as a map
123
122
varType: map(string)
124
-
defaultValue: null
125
123
- name: network
126
124
description: Network to deploy to. Only one of network or subnetwork should be specified.
127
125
varType: string
@@ -133,11 +131,9 @@ spec:
133
131
- name: region
134
132
description: Region where the instances should be created.
135
133
varType: string
136
-
defaultValue: null
137
134
- name: resource_manager_tags
138
135
description: (Optional) A tag is a key-value pair that can be attached to a Google Cloud resource. You can use tags to conditionally allow or deny policies based on whether a resource has a specific tag. This value is not returned by the API. In Terraform, this value cannot be updated and changing it will recreate the resource.
139
136
varType: map(string)
140
-
defaultValue: null
141
137
- name: resource_policies
142
138
description: (Optional) A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
143
139
varType: list(string)
@@ -157,7 +153,6 @@ spec:
157
153
- name: zone
158
154
description: Zone where the instances should be created. If not specified, instances will be spread across available zones in the region.
Copy file name to clipboardExpand all lines: modules/instance_template/metadata.yaml
+1-12Lines changed: 1 addition & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Copyright 2023 Google LLC
1
+
# Copyright 2024 Google LLC
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
@@ -130,7 +130,6 @@ spec:
130
130
ip_cidr_range = string
131
131
subnetwork_range_name = string
132
132
})
133
-
defaultValue: null
134
133
- name: auto_delete
135
134
description: Whether or not the boot disk should be auto-deleted
136
135
varType: string
@@ -146,7 +145,6 @@ spec:
146
145
- name: disk_encryption_key
147
146
description: The id of the encryption key that is stored in Google Cloud KMS to use to encrypt all the disks on this instance
148
147
varType: string
149
-
defaultValue: null
150
148
- name: disk_labels
151
149
description: Labels to be assigned to boot disk, provided as a map
152
150
varType: map(string)
@@ -178,7 +176,6 @@ spec:
178
176
type = string
179
177
count = number
180
178
})
181
-
defaultValue: null
182
179
- name: ipv6_access_config
183
180
description: IPv6 access configurations. Currently a max of 1 IPv6 access configuration is supported. If not specified, the instance will have no external IPv6 Internet access.
184
181
varType: |-
@@ -197,15 +194,13 @@ spec:
197
194
- name: maintenance_interval
198
195
description: Specifies the frequency of planned maintenance events
199
196
varType: string
200
-
defaultValue: null
201
197
- name: metadata
202
198
description: Metadata, provided as a map
203
199
varType: map(string)
204
200
defaultValue: {}
205
201
- name: min_cpu_platform
206
202
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"
207
203
varType: string
208
-
defaultValue: null
209
204
- name: name_prefix
210
205
description: Name prefix for the instance template
211
206
varType: string
@@ -221,7 +216,6 @@ spec:
221
216
- name: nic_type
222
217
description: Valid values are "VIRTIO_NET", "GVNIC" or set to null to accept API default behavior.
223
218
varType: string
224
-
defaultValue: null
225
219
- name: on_host_maintenance
226
220
description: Instance availability Policy
227
221
varType: string
@@ -233,11 +227,9 @@ spec:
233
227
- name: project_id
234
228
description: The GCP project ID
235
229
varType: string
236
-
defaultValue: null
237
230
- name: region
238
231
description: Region where the instance template should be created.
239
232
varType: string
240
-
defaultValue: null
241
233
- name: resource_policies
242
234
description: A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
243
235
varType: list(string)
@@ -249,7 +241,6 @@ spec:
249
241
email = string
250
242
scopes = set(string)
251
243
})
252
-
defaultValue: null
253
244
required: true
254
245
- name: shielded_instance_config
255
246
description: Not used unless enable_shielded_vm is true. Shielded VM configuration for the instance.
@@ -286,7 +277,6 @@ spec:
286
277
- name: stack_type
287
278
description: The stack type for this network interface to identify whether the IPv6 feature is enabled or not. Values are `IPV4_IPV6` or `IPV4_ONLY`. Default behavior is equivalent to IPV4_ONLY.
288
279
varType: string
289
-
defaultValue: null
290
280
- name: startup_script
291
281
description: User startup script to run when instances spin up
292
282
varType: string
@@ -306,7 +296,6 @@ spec:
306
296
- name: threads_per_core
307
297
description: The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1.
308
298
varType: number
309
-
defaultValue: null
310
299
- name: total_egress_bandwidth_tier
311
300
description: Egress bandwidth tier setting for supported VM families
Copy file name to clipboardExpand all lines: modules/mig/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ The current version is 2.X. The following guides are available to assist with up
32
32
| health\_check\_name | Health check name. When variable is empty, name will be derived from var.hostname. |`string`|`""`| no |
33
33
| hostname | Hostname prefix for instances |`string`|`"default"`| no |
34
34
| instance\_template | Instance template self\_link used to create compute instances |`string`| n/a | yes |
35
+
| labels | Labels, provided as a map |`map(string)`|`{}`| no |
35
36
| max\_replicas | 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. |`number`|`10`| no |
36
37
| mig\_name | Managed instance group name. When variable is empty, name will be derived from var.hostname. |`string`|`""`| no |
37
38
| mig\_timeouts | Times for creation, deleting and updating the MIG resources. Can be helpful when using wait\_for\_instances to allow a longer VM startup time. | <pre>object({<br> create = string<br> update = string<br> delete = string<br> })</pre> | <pre>{<br> "create": "5m",<br> "delete": "15m",<br> "update": "5m"<br>}</pre> | no |
@@ -44,7 +45,7 @@ The current version is 2.X. The following guides are available to assist with up
44
45
| stateful\_ips | Statful IPs created on the instances that will be preserved on instance delete. https://cloud.google.com/compute/docs/instance-groups/configuring-stateful-ip-addresses-in-migs| <pre>list(object({<br> interface_name = string<br> delete_rule = string<br> is_external = bool<br> }))</pre> |`[]`| no |
45
46
| target\_pools | The target load balancing pools to assign this group to. |`list(string)`|`[]`| no |
46
47
| target\_size | 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. |`number`|`1`| no |
47
-
| update\_policy | The rolling update policy. https://www.terraform.io/docs/providers/google/r/compute_region_instance_group_manager#rolling_update_policy| <pre>list(object({<br> max_surge_fixed = number<br> instance_redistribution_type = string<br> max_surge_percent = number<br> max_unavailable_fixed = number<br> max_unavailable_percent = number<br> min_ready_sec = number<br> replacement_method = string<br> minimal_action = string<br> type = string<br> }))</pre> |`[]`| no |
| wait\_for\_instances | 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. |`string`|`"false"`| no |
0 commit comments