This module is used to create compute instances using google_compute_instance_from_template, and google_compute_instance_groups.
See the simple for a usage example.
Name | Description | Type | Default | Required |
---|---|---|---|---|
access_config | Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet. | list(list(object({ |
[] |
no |
additional_networks | Additional network interface details for GCE, if any. | list(object({ |
[] |
no |
hostname | Hostname of instances | string |
"" |
no |
hostname_suffix_separator | Separator character to compose hostname when add_hostname_suffix is set to true. | string |
"-" |
no |
instance_template | Instance template self_link used to create compute instances | string |
n/a | yes |
ipv6_access_config | 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. | list(list(object({ |
[] |
no |
named_ports | Named name and named port | list(object({ |
[] |
no |
network | Network to deploy to. Only one of network or subnetwork should be specified. | string |
"" |
no |
num_instances | Number of instances to create. This value is ignored if static_ips is provided. | string |
"1" |
no |
project_id | The GCP project ID | string |
null |
no |
region | The GCP region where the unmanaged instance group resides. | string |
n/a | yes |
static_ips | List of static IPs for VM instances | list(string) |
[] |
no |
subnetwork | Subnet to deploy to. Only one of network or subnetwork should be specified. | string |
"" |
no |
subnetwork_project | The project that subnetwork belongs to | string |
"" |
no |
zones | (Optional) List of availability zones to create VM instances in | list(string) |
[] |
no |
Name | Description |
---|---|
available_zones | List of available zones in region |
instances_details | List of all details for compute instances |
instances_self_links | List of self-links for compute instances |
self_links | List of self-links for unmanaged instance groups |
umig_details | List of all details for unmanaged instance groups |