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
| 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 |
| 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
20
| auto\_delete | Whether or not the boot disk should be auto-deleted |`string`|`"true"`| no |
21
21
| 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 |
@@ -41,6 +41,7 @@ See the [simple](../../examples/instance_template/simple) for a usage example.
41
41
| min\_cpu\_platform | 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|`string`|`null`| no |
42
42
| name\_prefix | Name prefix for the instance template |`string`|`"default-instance-template"`| no |
43
43
| network | The name or self\_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks. |`string`|`""`| no |
44
+
| network\_attachment | The self\_link of the network attachment for PSC-I connection. |`string`|`null`| no |
44
45
| network\_ip | Private IP address to assign to the instance if desired. |`string`|`""`| no |
45
46
| nic\_type | Valid values are "VIRTIO\_NET", "GVNIC" or set to null to accept API default behavior. |`string`|`null`| no |
46
47
| on\_host\_maintenance | Instance availability Policy |`string`|`"MIGRATE"`| no |
@@ -59,17 +60,20 @@ See the [simple](../../examples/instance_template/simple) for a usage example.
59
60
| spot\_instance\_termination\_action | Action to take when Compute Engine preempts a Spot VM. |`string`|`"STOP"`| no |
60
61
| stack\_type | 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. |`string`|`null`| no |
61
62
| startup\_script | User startup script to run when instances spin up |`string`|`""`| no |
63
+
| subnets | Optional: A map containing subnet details Used to derive the subnetwork URI if subnetwork is not provided. | <pre>list(object({<br> id = string<br> region = string<br> purpose = string<br> }))</pre> |`[]`| no |
62
64
| subnetwork | The name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided. |`string`|`""`| no |
63
65
| subnetwork\_project | The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used. |`string`|`""`| no |
64
66
| tags | Network tags, provided as a list |`list(string)`|`[]`| no |
65
67
| threads\_per\_core | The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. |`number`|`null`| no |
66
68
| total\_egress\_bandwidth\_tier | Egress bandwidth tier setting for supported VM families |`string`|`"DEFAULT"`| no |
69
+
| vlan | The VLAN ID for the primary network interface (Dynamic NIC), must be an integer from 2 to 255. |`number`|`null`| no |
67
70
68
71
## Outputs
69
72
70
73
| Name | Description |
71
74
|------|-------------|
72
75
| name | Name of instance template |
76
+
| network\_interface\_details | The names and VLAN tags of the template interfaces. |
73
77
| self\_link | Self-link of instance template |
74
78
| self\_link\_unique | Unique self-link of instance template (recommended output to use instead of self\_link) |
75
79
| service\_account\_info | Service account id and email |
0 commit comments