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: modules/instance_template/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ See the [simple](../../examples/instance_template/simple) for a usage example.
16
16
| access\_config | Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet. | <pre>list(object({<br> nat_ip = optional(string)<br> network_tier = string<br> }))</pre> |`[]`| no |
| additional\_networks\_str | Additional network interface details for GCE provided as a JSON-encoded string. Expected format: '[{"network":"vpc-1","subnetwork":"sub-1"}]'. |`string`|`"[]"`| no |
19
20
| alias\_ip\_range | An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks.<br>ip\_cidr\_range: The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.<br>subnetwork\_range\_name: The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used. | <pre>object({<br> ip_cidr_range = string<br> subnetwork_range_name = string<br> })</pre> |`null`| no |
20
21
| auto\_delete | Whether or not the boot disk should be auto-deleted |`string`|`"true"`| no |
21
22
| automatic\_restart | (Optional) Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). |`bool`|`true`| no |
Copy file name to clipboardExpand all lines: modules/instance_template/metadata.yaml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -263,6 +263,10 @@ spec:
263
263
- name: stack_type
264
264
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.
265
265
varType: string
266
+
- name: additional_networks_str
267
+
description: "Additional network interface details for GCE provided as a JSON-encoded string. Expected format: '[{\"network\":\"vpc-1\",\"subnetwork\":\"sub-1\"}]'."
268
+
varType: string
269
+
defaultValue: "[]"
266
270
- name: additional_networks
267
271
description: Additional network interface details for GCE, if any.
Copy file name to clipboardExpand all lines: modules/instance_template/variables.tf
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -282,6 +282,12 @@ variable "stack_type" {
282
282
default=null
283
283
}
284
284
285
+
variable"additional_networks_str" {
286
+
description="Additional network interface details for GCE provided as a JSON-encoded string. Expected format: '[{\"network\":\"vpc-1\",\"subnetwork\":\"sub-1\"}]'."
287
+
type=string
288
+
default="[]"
289
+
}
290
+
285
291
variable"additional_networks" {
286
292
description="Additional network interface details for GCE, if any."
0 commit comments