This module creates a compute instance from instance template for a Slurm cluster.
NOTE: This module is only intended to be used by Slurm modules. For general usage, please consider using:
- terraform-google-modules/vm/google//modules/compute_instance. WARNING: The source image is not modified. Make sure to use a compatible source image.
For the terraform module API reference, please see README_TF.md.
Copyright (C) SchedMD LLC. Copyright 2018 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
| Name | Version |
|---|---|
| terraform | ~> 1.0 |
| >= 3.43 | |
| null | ~> 3.0 |
| Name | Version |
|---|---|
| >= 3.43 | |
| null | ~> 3.0 |
No modules.
| Name | Type |
|---|---|
| google_compute_instance_from_template.slurm_instance | resource |
| null_resource.replace_trigger | resource |
| google_compute_instance_template.base | data source |
| google_compute_zones.available | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| access_config | Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet. | list(object({ |
[] |
no |
| additional_networks | Additional network interface details for GCE, if any. | list(object({ |
[] |
no |
| hostname | Hostname of instances | string |
n/a | yes |
| instance_template | Instance template self_link used to create compute instances | string |
n/a | yes |
| 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. | number |
1 |
no |
| project_id | The GCP project ID | string |
null |
no |
| region | Region where the instances should be created. | string |
null |
no |
| replace_trigger | Trigger value to replace the instances. | string |
"" |
no |
| 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 |
null |
no |
| zone | Zone where the instances should be created. If not specified, instances will be spread across available zones in the region. | string |
null |
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 |
| names | List of available zones in region |
| slurm_instances | List of all resource objects for compute instances |