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. | object | <list> |
no |
hostname | Hostname of instances | string | "" |
no |
instance_template | Instance template self_link used to create compute instances | string | n/a | yes |
named_ports | Named name and named port | object | <list> |
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) | <list> |
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 |
Name | Description |
---|---|
available_zones | List of available zones in region |
instances_self_links | List of self-links for compute instances |
self_links | List of self-links for unmanaged instance groups |